Copying your JCL library
Allocates the new data set if it does not already exist.
Copies all members from the original JCL data set to the new one.
Changes the JCL in the copied members to reference the new JCL data set name instead of the original JCL data set name.
Use the following procedure to make a copy of your JCL library.
To make a copy
- (optionally) Edit the $$JCLCPY member to specify the name of a new JCL data set.
The output data set name is specified as &DVOLIB..BKUP in the sample. Change the output data set name to a valid name for the new JCL library.
//IN DD * BMIRXCL '&DVOLIB' + '&DVOLIB..BKUP'
If you do not change the name, the JCL library will be named the same as your original library with the BKUP low-level qualifier added to it. For example, if the original data set name is MY.INSTALL.JCL, the copy would be named MY.INSTALL.JCL.BKUP.
Do not change the input data set name (&DVOLIB) or the copy will not work properly.
- Run the $$JCLCPY job.
The new library is created.