The ARCHIVE statement saves the contents of a file group or one of its files. The LDMAMS utility uses this statement during an archive process.
ARCHIVE GROUP (id) OUTFILE(ddname) [SWITCH]
ARCHIVE INFILE(ddname) OUTFILE(ddname) [SWITCH]
Parameters
Archives all non-empty files that are associated with the group ID you specify.
Archives only the specified file.
Sequential file that stores the archived data.
Closes the currently active file, archives it, and makes a new file active.
Note: You can specify this statement only as input for an LDMAMS job. The files that you reference on this statement must be defined on DD statements in the JCL for the LDMAMS job.
Example
To archive file group UGRPID and store the archive data in the OUTGDG file, specify this statement as input to the LDMAMS job:
ARCHIVE GROUP(UGRPID) OUTFILE(OUTGDG) SWITCH
Copyright © 2014 CA Technologies.
All rights reserved.
|
|