Using symbolic variables, you can create generic JCL that can be used to archive many different files. If you set up generic JCL using symbolic variables, you can use the same JCL for every managed data set, rather than having to create a specific archiving procedure for each file.
Symbolic variables will be replaced by CA-L-Serv before submitting the JCL. CA-L-Serv provides the following symbolic variables:
|
Substitution Value |
Symbolic Variable |
|---|---|
|
The ddname of a file you are archiving |
%FILE% |
|
The name of a file group you are archiving |
%GROUP% |
|
The ddname for the sequential file where you store the data you are archiving |
%DSN% |
Note: Do not use symbolic variables in JCL that you submit yourself. Use them only in JCL that CA-L-Serv submits automatically.
For instance, suppose you add the files F1 through F10 to the file group G100, specify SUBMIT with each, and use ARCHJCL to perform the archiving procedure. To place the files in a data set that follows the naming convention of LSERV.ARCH.group.file, create ARCHJCL using the following statements:
// EXEC PGM=LDMAMS //SSN$xxxx DD DUMMY //SYSPRINT DD SYSOUT=A //SYSIN DD * ARCHIVE INFILE(%FILE%) OUTFILE(ARCHDS) //ARCHDS DD DSN=LSERV.ARCH.%GROUP%.%FILE% ... After F3 is archived, you can find it in LSERV.ARCH.G100.F3.
Note: For more information about using the SUBMIT option with the ADDFILE command, see the Reference Guide.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |