To suppress hexadecimal conversion during an EXEC procedure after
having used it, you can use theEXEC control statement: &HEX OFF so you can U$e tokens containing the characters X' without the EXEC processor converting them to hexadecimal. Arguments
An argument in anEXEC procedure is one of the special variable symbols
&1 through&30 that are assigned values when the EXEC is invoked. Por example, if the EXEC named LINKS is invoked with the line:
links viola ariel oberon
the tokensVIOLA, ARIEL, and OBERON are arguments and are assigned to
the variable symbols &1, &2, and &3,You can pass as many as 30 arguments to an EXEC procedure; thus the
variable sy.bols you can set range from &1 to&30. These variables are
collectively referred to as the special variable &n.Once these symbols
are defined, they can be used and manipulated in the same manner as any
other variable in anEXEC. They can be tested, displayed, changed, and,
if they contain numeric quantities, used arithmetically.&IP &2 EQ PRINT &GOTO -PR
&TIPE &1IS AI INVALID ARGUMENT &1 = 2
&CT = &1... 100 The above illustrate some explicit methods of manipulating the
&n variables. They can also be implicitly defined or redefined by twoEXEC control statements: &ARGS and &READ ARGS. An &ARGS control statement redefines all of the special &n variables.
The statement:&ARGS ABC
assigns the value of A, B, and C to the variables &1, &2, and &3 and
sets the remaining variables, &4 through&30, to blanks. You can also redefine arguments interactively by using the &REID IRGS control statement. When EXEC processes this statement, a read request is
presented to your ter.inal, and the tokens you enter are assigned to the
&n variables. Forexample, the lines:
&TIPE ENTER FILENAME AND TYPE: &READ ARGS STATE &1 &2 *
request you to enter
arguments &1 and &2.
blanks.
tvo tokens, and then treat these tokens as the
The remaining variables &3 through&30 are set to
If you want to redefine specific &n variables, and leave the values
of others intact, you can either redefine the individual variables in
separate assignment statements, or use the variable symbol in theSIRGS or &READ IRGS statement. For example, the statement: &ARGS CONT &2 &3 RETURN &5 &6 &7 &8 &9 &10 272 IBM VM/370 CMS User's Guide
having used it, you can use the
An argument in an
&1 through
links viola ariel oberon
the tokens
the variable symbols &1, &2, and &3,
variable sy.bols you can set range from &1 to
collectively referred to as the special variable &n.
are defined, they can be used and manipulated in the same manner as any
other variable in an
if they contain numeric quantities, used arithmetically.
&TIPE &1
&CT = &1
&n variables. They can also be implicitly defined or redefined by two
The statement:
assigns the value of A, B, and C to the variables &1, &2, and &3 and
sets the remaining variables, &4 through
presented to your ter.inal, and the tokens you enter are assigned to the
&n variables. For
&TIPE ENTER FILE
request you to enter
arguments &1 and &2.
blanks.
tvo tokens, and then treat these tokens as the
The remaining variables &3 through
If you want to redefine specific &n variables, and leave the values
of others intact, you can either redefine the individual variables in
separate assignment statements, or use the variable symbol in the