NetBatch Manual

Commands
NetBatch Manual522460-004
6-124
RUN Command
This example shows the RESET SCHEDULER command removing all scheduler
attributes from the working-attributes set:
3} SHOW SCHEDULER
SCHEDULER ATTRIBUTES
backupcpu: 1,2
at-allowed: On
submit-allowed: On
4} RESET SCHEDULER
5} SHOW SCHEDULER
SCHEDULER ATTRIBUTES
RUN Command
Use the RUN command to run a program during a BATCHCOM session.
program-file
is the name of a program file. BATCHCOM expands a partially qualified file name
by using the defaults specified in the last VOLUME command. If there was no such
command, the defaults current at the start of the session apply. If the resulting
expanded name specifies a nonexistent file, BATCHCOM uses $SYSTEM.SYSTEM
for expansion purposes.
list-file
is the output file of the new process. If you omit OUT list-file, BATCHCOM’s
home terminal is the output file. If you include OUT with no list-file, spaces are
sent as the name of the output file. list-file can specify a DEFINE from
BATCHCOMs working-attributes set.
param-set
is one or more program parameters sent to the new process in the startup
message. BATCHCOM deletes leading and trailing spaces.
Considerations
The RUN command is available to all users.
The program you run uses BATCHCOM’s defaults for file-name expansion. These
defaults are the same as those used by BATCHCOM to expand program-file.
Stopping program-file returns the BATCHCOM prompt.
You can disable the RUN command with the NBFLAGS procedure. For details, see
on page 2-3.
RUN program-file [ / OU[T] [ list-file ] / ] [ param-set ]