Previous Topic: WRITELOG CommandNext Topic: COMMTEST Statement


LDMAMS Statements

ARCHIVE Statement

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.

Syntax

ARCHIVE GROUP (id) OUTFILE(ddname) [SWITCH]
ARCHIVE INFILE(ddname) OUTFILE(ddname) [SWITCH]

Parameters

GROUP

Archives all non-empty files that are associated with the group ID you specify.

INFILE

Archives only the specified file.

OUTFILE

Sequential file that stores 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