EXEC Control Statements-Assignment Statement, &ARGS sUbstitution is performed on all symbols on the left-hand
side of an assignment statement, except the leftmost variable. For
example: &1 = 2 &X&1 = 5
sets &X2 to 5.
If a variable on the left-hand side of an assignment statement has
already been assiqned a value, it is replaced by the new value specified
in the statement.
If the special form, X'&symbol, is converted to its hexadecimal equivalent.
&A = 192 STIPE X'&A results in the display:
co
used, the specified symbol
For example:
is
If a variable symbol that has not been defined is used in an
executable statement the symbol is set to a null token and ignored. In
some instances this may cause an EXEC processing error.
All exe=crtable statements in an EXEC are scanned into eight-character
tokens, and padded or truncated as necessary_ Tokens are formed of words
delimited by blanks and parentheses. If there is no blank before or after a parenthesis, one is added in either If more than one
blank separates a word or a parenthesis from another, the extra blanks
are from the line. For example, the line: STIPE THIS IS AN EXAGGERATED (MESSAGE scans as: &TIPE THIS IS AN EXAGGERA ( MESSAGE symbols are substituted after each line is scanned. and each is scanned repeatedly until all symbols in it are substituted.
In an executable statement, a token beginning with the character X' FF' a v ar iable to which such a token is assigned as a value)
usually prevents the processing of data following it on tne same line. However, if an assignment statement sets a variable to eight X'FF' characters, data following the variable in an executable statement is
processed. &ARGS Use the &ARGS control statement to redefine the value of one or more of
the spe=ial variables, &1 through &30. The format of the &AR3S control
statement is:
r I &ARGS [arg1 [arg2 ••• [arg30] ] ] '-- Section 5. EXEC Control Statements 279
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
Previous Page Next Page