EXEC Control Statements-&ARGS, [ a r g 1 [a r g 2 ••• [ar q 30 ] ] ]
specify up to 30 tokens to be assigned to the special
variables &1 through &30. If no arguments are specified, all
of the variables &1 through &30 are set to blanks. When fewer
than 30 arguments are entered, the remaining arguments are set
to blanks. An argument is also set to blanks if it is
specified as a percent siqn (%). 1. To enter an argument list from the terminal, use the &READ ARGS control statement.
2. An &ARGS control statement resets the values of the SINDEX, &*, and
&$ special variables.
&BEGEMSG Use the &BEGEMSG control statement to introduce one or more unscanned
lines to be edited as VM/370 error messages. The list of lines to be
displayed must be terminated by an &END control statement, which must
appear beginning in column 1. The of the &BEGEMS3 control
statement is: r- I I [ALL] L- ALL specifies, for fixed-length EXEC files, that the entire line (to a of 130 characters) is to be displayed.
1. To qualify for error message editing, the first data item on each following the &BEGEMSG control statement must be seven
characters long, in the format:
mmmnnns
mmmnnn is a six-character message identification you can supply
for the error message. Standard VM/370 error messages use a
three-character module code (mmm) ana a three-character
message number (nnn).
s indicates the severity code. The following codes qualify
the message for error message editing: !,ng Informational
Error
Warning When the severity code is E, I, or W, the message is
displayed in accordance with the CP EMSG setting (ON, OFF, CODE, or TEXT). You can change this setting with the CP SET command, described in Q§!!§ra! 280 eMS Command and Macro Reference
EXEC Control statements-&BEGEMSG, &BEGPUNCH 2. When you use the &BEGEMSG control statement to display error
messages, the character string "DMS" is inserted in front of the
seven-character message identification. For example, if the EMSG setting is ON, the lines: &BEGEMSG TEST01E INSURMOUNTABLE ERROR &END
result in the display: DMSTEST01E INSURMOUNTABLE ERROR Note: Since the maximum length of a line that you can display at yoir terminal is 130 characters, the insertion of the characters DMS will cause lines greater than 127 characters long to be 3. Messages that are displayed as the result of an &BEGEMSG control
statement are not scanned by the EXEC interpreter. Therefore, no
variable substitution is performed and no data items are truncated.
To display variable data, use the &EMSG control statement.
&BEGPUNCH Use the &BEGPUNCH control statement to delimit the beginning of a list
of one or more data lines to be spooled to your virtual card punch. The
list of lines to be punched is terminated by the control statement &END,
which must occur beginning in column 1. The format of the &BEGPUNCH control statement is:
r
, I &BEGPUNCH L-- r ALL] , II ALL specifies that data occupying columns 73 through 80 should be
punched. If ALL is not specified, input records are truncated
at column 72 and columns 73 through 80 of the output record are padded with blanks.
1. Lines that are punched as the of an &BEGPUNCH control
statement are not scanned by the EXEC interpreter. Therefore, no
variable substitution is performed and no data items are truncated. To punch variable data, you must use the &PUNCH control statement.
2. When you are finished punching lines in an EXEC procedure, you
should use the CP CLOSE command to close your virtual punch. Section 5. EXEC Control Statements 281
Previous Page Next Page