Dynamically adding a library to the Linklist

Need to create a new temporary LNKLST…..

e.g.

SETPROG LNKLST,DEFINE,NAME=LNKLST02,COPYFROM=LNKLST00

SETPROG LNKLST,ADD,NAME=LNKLST02,DSNAME=SYS1.LINKLIB2

SETPROG LNKLST,ACTIVATE,NAME=LNKLST02

Try doing this via JCL

//          EXEC     PGM=IEFBR14

// SETPROG LNKLST etc

it saves all the tedious typing on the console.

Displaying link list libraries…..

D PROG,LNKLST

 

Note that you cannot specify in a SETSSI ADD command a subsystem initialization routine that is added via a SETPROG LNKLST,ADD command. That is because the new LNKLST library will not be picked up until the end of the job that is running. However, the SETSSI command runs in the MASTER ASID, which never ends (until the next IPL). Therefore, the SETSSI command can never pick up a new LNKLST.

 

0 comments on Dynamically adding a library to the Linklist

MyMusic

Flickr recent photosets

Porlock Vale 2011