The ARCHIVE statement saves the contents of a file group or one of its files. This statement is used by the LDMAMS utility during an archive process.
ARCHIVE GROUP (id) OUTFILE(ddname) [SWITCH]
ARCHIVE INFILE(ddname) OUTFILE(ddname) [SWITCH]
|
Operand |
Explanation |
|---|---|
|
GROUP |
Archives all non-empty files associated with the group ID you specify. |
|
INFILE |
Archives only the specified file. |
|
OUTFILE |
Identifies the sequential file that will store the archived data. |
|
SWITCH |
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 © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |