EXEC Subcommands-&SKIP, &SPACE n specifies the number of lines to be skipped: If n is greater than 0, the specified number of lines are
skipped. Execution continues on the line following the skipped
lines. If the value of n surpasses the number of lines
remaining in the file, the EXEC terminates processing. If n is equal to 0, no lines are skipped, and execution
continues with the next line. If n is less than 0, execution continues with the line that is n
lines above the current line: An attempt to sKip beyond the
beginning of the file results in an error exit from the EXEC. The n may be coded as a variable symbol. 1 is the default value
that is used when no value is specified for n. To pass control to a particular label in an EXEC procedure, use the &GOTO control statement. The &GOTO control statement provides more
flexibility when you want to update your EXEC procedures. The &SKIP statement, however, is more efficient, in terms of execution time.
&SPACE Use the &SP!CE control statement to display a specified number of blank
lines at your terminal. The format of the &SPACE control statement LS: ,------ I I &SPACE I I L- __
n specifies
r , I n I 1
the nu mb er of
If no number
blank lines
is specified,
to be &SPACE displayed at
1 is assumed
1. You may want to use the &SPACE control statement to control the
format of the execution summary that displays while your EXEC executes. Section 5. EXEC Control Statements 293
Control Statements-&STACK &STACK Use the &STACK control statement to stack a single data line in the
console input stack. Stacked lines may be read by the EXEC, by or bV the CMS editor. The format of the &STACK control statement is:
r , I &STA:K , I , L ____ _ LIFO specifies that the line is to be stacked in a first in, first
out sequence, and is the default if not specified otherwise.
specifies that the line is to be stacked in a last in, first
out sequence.
tokl (tok2 ••. [tokn]] HT
specify the tokens to be stacked. If no tokens are specified,
a null line is stacked. The tokens are in expanded form.
stacks the CMS Immediate command HT (halt typing), which is
executed immediately. All terminal display from the EXEC is
suppressed until the end of the file or until an RT (resume typing) command is read.
stacks the CMS Immediate command RT (resume typing), which is
executed immediately. If terminal display has been suppressed
as the result of an HT (halt typing) request, display is
1. Lines stacked with the &STACK control statement are scanned by the EXEC interpreter and variable symbols are substituted before the
line is stacked. To stack one or more unscanned lines, use the &BEGSTACK or &BEGSTACK ALL control statement.
2. You must use the &STACK control statement when you want to stack a
null line. 3. Any CMS Immediate command may be executed in an EXE:, using the &STACK control statement.
4. A complete discussion of techniques you can use to stack commands
and data in the console stack is provided in the 294 VM/370 CMS Command and Macro Beference
Previous Page Next Page