Previous Topic: LDMAMS Statements

Next Topic: COMMTEST Statement

ARCHIVE Statement

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.

Syntax

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