• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Set Your Library List From A Job Description

    August 18, 2015 Ted Holt

     

     

    Note: The code accompanying this article is available for download here.

    On August 4, 2015, I asserted that the proper residence of a library list is a job description. Talk is cheap. Now it’s time for me to put my money where my mouth is. I have a utility that gives me easy access to the library lists in job descriptions. I wrote this utility last year, and now I use it daily with great results. Today I make that utility freely available for you to use in your shop.

    If I were to follow IBM’s naming convention, I would probably call my utility CHGLIBLFRMJOBD, but that name exceeds the 10-character limit, and besides, it’s too much to type. I call the utility LLJD, and it consists of three objects:

    1. LLJD: the command interface
    2. LLJDC: the CL program that changes the library list
    3. LLJDH: help text

    It also uses Brian Rusch’s magnificent commands MOVPGMMSG and RSNESCMSG. If you missed those, see the link in the related stories below.

    LLJD accepts two parameters:

    1. The qualified name of a job description
    2. A current library

    Job descriptions don’t define a current library, but leaving a current library in the library list can produce undesirable results, so I added the second parameter.

    Here’s an example:

    LLJD  JOBD(QGPL/MYJOBD) CURLIB(MYLIB)
    

    The JOBD parameter tells the system to set the user portion of the current job to the library list found in job description MYJOBD in library QGPL, and also to set the current library to MYLIB.

    Both parameters default to a value of *USRPRF, which means that LLJD should set the library list and current library to the values that are assigned to the current user profile. Therefore, entering LLJD without any parameters is a quick way to reset an interactive job to the values it had at sign-on.

    As with all code that you get from others, test thoroughly and use at your own risk. If you find bugs or have suggestions for enhancements, please let me know.

     

    RELATED STORIES

    Where Do Library Lists Reside?

    CL Error-Handling With APIs

     

    Share this:

    • Share on Reddit (Opens in new window) Reddit
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on X (Opens in new window) X
    • Email a link to a friend (Opens in new window) Email

    Tags:

    Sponsored by
    i-Rays

    i‑Rays learns how your IBM i behaves; not just how it performs. Detect deviations hours before incidents form and eliminate alert fatigue with true behavioral observability.

    Traditional monitoring tells you when something breaks. i‑Rays tells you why it’s about to break. By baselining behavioral patterns across jobs, subsystems, and queues, i‑Rays highlights the most likely root cause long before users feel the impact. It’s proactive, noise‑free, and built for mission‑critical IBM i environments.

    Request a Demo

    Share this:

    • Share on Reddit (Opens in new window) Reddit
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on X (Opens in new window) X
    • Email a link to a friend (Opens in new window) Email

    Sponsored Links

    LaserVault:  WEBINAR: Get Faster, Easier IBM i Backups & Restores GUARANTEED. Aug 20 Four Hundred Monitor Calendar:  Latest info on national conferences, local events, & Webinars System i Developer:  Session Grid Posted: RPG & DB2 Summit - Chicago, October 20-22

    An Introduction to Processing XML With RPG, Part 2 RCAC in DB2 for i, Part 1: Row Access Permissions

    2 thoughts on “Set Your Library List From A Job Description”

    • SCOTT LEWIS says:
      December 14, 2025 at 6:10 am

      Hi, When I attempt to download the source I am met with with some sort of instagram download! How do I get the source for LLJD?? Thanks, Scott

      Reply
    • Ted Holt says:
      June 25, 2026 at 3:08 pm

      The downloadable code link works properly now. I also added the source for MOVPGMMSG and RSNESCMSG to the zip file.

      Reply

    Leave a ReplyCancel reply

Volume 15, Number 16 -- August 18, 2015
THIS ISSUE SPONSORED BY:

WorksRight Software
SEQUEL Software
Storagepipe

Table of Contents

  • An Introduction to Processing XML With RPG, Part 2
  • Set Your Library List From A Job Description
  • RCAC in DB2 for i, Part 1: Row Access Permissions

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Welcoming The New IBM i Chief Architect And Other New Top Brass
  • A Deep Dive Into That Power S1112 Entry Power11 Server
  • Guru: Beyond Three-Part Naming – Running SQL Across Remote IBM i Systems
  • How IBM Bolstered IBM i Resilience In The Summer Tech Refreshes
  • IBM i PTF Guide, Volume 28, Number 26
  • Power Systems Has A Great Quarter; System Z, Not So Much
  • Does AI Mark The End Of The ERP Era?
  • Guru: Deterministic Application Development With AI
  • What IBM’s Got Cooking In Db2 For i In The Summer TRs
  • IBM i PTF Guide, Volume 28, Number 25

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle