Every user can call ARCHIVE with /START-ARCHIVE
or/START-EXECUTABLE-PROGRAM FROM-FILE=$ARCHIVE.
Whenever ARCHIVE expects input of a statement during program execution, the user can use the HELP statement (see "HELP Display ARCHIVE statements") to request information about the available statements and about the syntax of the individual statements.
A typical ARCHIVE call could look like this:
You call ARCHIVE with
/START-ARCHIVE
If you do not want to use the default values, you can now use the PARAM statement to select parameter values for this run, e.g.
PARAM OPERATOR=YES
You then enter FILES and/or JOBVAR statements to specify the files and/or job variables that are to be processed. You may enter several such statements.
You then specify in a single statement how these files and job variables are to be processed. You can SAVE, LIST or RESTORE the files and job variables.
Steps 2 to 4 can be repeated as often as required before ARCHIVE is terminated.
With the K2 key, you can only interrupt the statements INQUIRE and SHOW-DEFAULT.
On completion of processing, you terminate ARCHIVE with END.
ARCHIVE parameters are only used in ARCHIVE statements if the operand corresponding to the parameter is not specified in the statement. (see “Underlining”, "Metasyntax").
In the syntax representation, the presetting for the parameters is specified as the default value (see "SHOW-DEFAULT Display the default parameter settings"). The value for the parameter can differ from the presetting if the parameter file is altered, see below.
You can also call ARCHIVE with the ARCHIVE macro (see chapter "ARCHIVE macro").