SCF Reference Manual for G-Series RVUs (G06.24+)
SCF Commands
SCF Reference Manual for G-Series RVUs—520413-004
5-98
REPEAT Command
REPEAT Command
The REPEAT command causes the remainder of the command line to be repeated
either for the number of iterations specified or until the Break key is pressed.
/OUT file spec/
causes any SCF output generated for this command to be directed to the specified
file. The variable file-spec is defined on page 5-9.
count
is the number of times the command line is executed. If omitted, the command line
is executed either until the Break key is pressed, the process is sent a WAKE
message, or the process is terminated.
command-line
is one or more SCF commands, separated by semicolons.
Considerations
•
Only one REPEAT command can appear on a command line. To obtain multiple
levels of iteration, use REPEAT commands within command files.
•
Alias names following a REPEAT command must be preceded by a hyphen (-).
Only aliases at the beginning of the line are expanded by default.
•
The REPEAT command cannot be used with the FC, ?, and menu-mode help
commands.
Examples
•
The following command line causes the subsequent STATUS and DELAY
commands to be repeated until the Break key is pressed:
-> REPEAT STATUS $X25*; DELAY 2:00
•
The following command sequence uses the ALIAS command to set up an alias
named BACKBONE containing the text string “PROCESS $NCP, AT \HUB TO (\SF,
\DALLAS, \CHICAGO, \NEWYORK, \MIAMI).” The subsequent REPEAT
command causes five iterations of the PROBE command using the text from the
alias named BACKBONE. (Note that the alias name within a REPEAT command
must be preceded by a hyphen.)
-> ALIAS BACKBONE PROCESS $NCP, AT \HUB TO (\SF, \DALLAS, &
-> \CHICAGO, \NEWYORK, \MIAMI)
-> REPEAT 5 PROBE -BACKBONE
REPEAT [ /OUT file spec/ ] [ count ] command-line