A command file must be organized as a SAM file.
(FILE=filename, FCBTYPE= SAM, RECFORM=V, BLKSIZE=STD ).
You can choose any filename. You create the command file using a BS2000 file preparation program (e.g. EDT). The command file must be cataloged in the home pubset. Errors may occur in connection with files cataloged on data pubsets or shared pubsets.
Continuation lines
Any command you enter in the command file may possess continuation lines.
A maximum 800 lines are permitted for each command.
A hyphen at the end of a line is interpreted as a continuation character.
The continuation line must start with ’/’.
You can use /BCOPTION LINE-CONTINUATION to define whether a hyphen in column 72 is always interpreted as a continuation character.
Remarks, comments
To clarify the structure of the file, you can generate Remark lines in the command file. Remark lines are identified by a * in the first column or by /REMARK.
Multiple command files
If a command file is being processed then no further command files can be started via the console until the current file has been terminated. However, a command files may contain calls to up to seven additional command files.
Command errors
BCAM administration outputs a message for every executed administration command.
You use the BCAM command BCOPTION CMDFILE-CONTINATION to specify whether or not the remainder of the command file should be processed if an error occurs (negative command acknowledgment).
The branching instructions provide a convenient way of controlling the processing of a command file (see above).