Previous Topic: Automatic Archive of File Groups

Next Topic: Generic JCL for Archiving Files

ADDFILE Command with the SUBMIT OPTION

Specify the following ADDFILE statements to cause files in the NDJG group to be archived when they become full:

ADDFILE J1 END.JRN1 GROUP(NDJG) OPTION(SUBMIT) JCLMEMBER(ENDARCH)
ADDFILE J2 END.JRN2 GROUP(NDJG) OPTION(SUBMIT) JCLMEMBER(ENDARCH)
ADDFILE J3 END.JRN3 GROUP(NDJG) OPTION(SUBMIT) JCLMEMBER(ENDARCH)

Note: As explained in the following section, it is possible to use the same JCL member to archive different files.