Update Linklist dynamically

Some people dread the idea of having to update the Linklist dynamically but in fact it’s a very simple process:

  1. Update the PROGxx member that your system uses from PARMLIB:
    • Add/remove libraries as required
    • Change the LNKLSTnn reference to LNKLSTnn+1
  2. Issue the following MVS commands:
    • SETPROG LNKLST,UNALLOCATE
    • P LLA
    • SET PROG=xx
    • S LLA,SUB=MSTR
    • SETPROG LNKLST,ALLOCATE
    • SETPROG LNKLST,UPDATE,JOBNAME=*
  3. To make sure the libraries have been added /removed from the Linklist, issue the MVS command: D PROG,LNKLST

Example:

Let’s suppose your system is using SYS1.PARMLIB(PROG00) and the Linklist area in use is LNKLST00.

These would have to be the steps to follow:

  1. Edit SYS1.PARMLIB(PROG00) and add/remove the libraries you want from the Linklist area.
  2. Change all LNKLST00 references in SYS1.PARMLIB(PROG00) to LNKLST01.
  3. Issue the following MVS commands:
    • SETPROG LNKLST,UNALLOCATE
    • P LLA
    • SET PROG=00
    • S LLA,SUB=MSTR
    • SETPROG LNKLST,ALLOCATE
    • SETPROG LNKLST,UPDATE,JOBNAME=*
    • D PROG,LNKLST

Note:

Click here to check why we need to stop LLA and unallocate the LNKLST.

10 Comments

  1. Hi Rui Miguel Feio,

    Your site is Highly Informative and Excellent, and you have the real Technical Skill, OHH .. Excellent ….. ///

  2. I know exactly what you mean. Many people dread of the idea of messing with the Linklist.

    Please do monitor the website and let me know of things you would like to see posted here. I sometimes run out of ideas on what to write. 🙂

    Any time you need anything Pete, feel free to contact me. I will always try to help as best as I can.

    Your friend,

    Rui

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.