How to dynamically allocate a JCL library to CA 7?
If you need to dynamically add a JCL library to CA 7 and do not want to take a CA 7 product outage by recycling, you can use the following CA 7 top line command:
/JCL,OPT=ADD,INDEX=indexc,DSN=your.jcl.library
The INDEX keyword defines the symbolic index associated with the JCL statement. A symbolic index is referred to as a JCLLIB on the DB.1 panel. A symbolic index consists of an ampersand (&) followed by up to 15 alphanumeric characters.
You can also define the JCL library as an alternate library to an existing JCL library by using the ALT=xxx keyword. Where xxx defines the INDEX value from a previously defined JCL library that is searched prior to this one.
example:
/JCL,OPT=ADD,INDEX=indexc,DSN=your.jcl.library,ALT=001
Once you dynamically define a JCL library an index value of 255 will be assigned. To display all the JCL libraries defined to CA 7 including the dynamically added libraries, you can issue command:
/DISPLAY,ST=JCL
You also can delete or update the current dynamically allocated library via the /JCL command.
This is a dynamically added library and therefore if CA 7 is restarted the JCL library is no longer defined unless JCLDEFS=VSAM is specified on the RESIDENT statement in the initialization file.