RUN RUN Use the PUN EXEC procedure to initiate a series of functions on a file
depending on the filetype. The RUN command can select or combine the
procedures required to compile, load, or start execution of the
specified file. The format of the RUN command is:
r , RUN L- fn (ft (fm]] [ (args ••• [)]]
fn is the filename of the file to be manipulated.
ft is the filetype of the file to be manipulated. If filetype is not
specified, a search is made for a file with the specified filename
and the filetype of EXEC, MODULE, or TEXT (the search is performed
in that order). If the filetype of an input file for a language
processor is specified, the language processor is invoked to
compile the source statements and produce a TEXT file. If no
compilation errors are found, LOAD and START may then be called to
initiate program execution. The valid filetypes and resulting
action for this command are: EXEC MODULE TEXT !£iiQ!! The EXEC processor is called to process the file. LOADMOD command is issued to load the program into
storage and the START command begins execution of the
program at the entry point equal to fn. LOAD command brings the file into storage in an
executable format and the START command executes the
program beginning at the entry point named by fn. FORTRAN FORTRAN processor module that is called is FORTRAN, FORTGI, GOFORT, or FORTHX, whichever is found first. Object text successfully compiled by the FJRTGI or FORTHI processors will be loaded and executed. TESTFORT The TESTFORT module is called to initiate FORTRAN Interactive Debug and will process a TEXT file that has
been compiled with the TEST option. FREEFORT The GOFORT module is called to process the file. COBOL COBOL processor module that is called is COBOL or TESTCOB, whichever is found first. After successful
compilation, the program text will be loaded and
executed. PLI The PLIOPT processor module is called to process PLIOPT the file. After successful compilation, the program text
will be loaded and executel. 1n4 VM/370 Command and Macro Reference
RUN fm is the filemode of the file to be manipulated. If this field is
specified, a filetype must be specified. If fm is not specified,
the default search order is used to search your disks for the file.
args are arguments you want to pass to your program. You can specify up
to 13 arguments in the RUN command, provided they fit on a single
input line. Each argument is left-justified, and any argument more
than eight characters long is truncated on the right. 1. The RUN command is an EXEC file; if you want to execute it from
within an EXEC, you must use the EXEC command.
2 If you are executing an EXEC file, the arguments you RUN command line are assigned to the variable symbols
so on.
enter on the
&1, &2, and
3. If you are executing a TEXT or MODULE file, or compiling and
executing a program, the arguments are in a parameter list
and passed to your program when it executes. The arguments are
placed in a series of doublewords in storage, terminated by X'FF'. If you enter:
run myprog (charlie dog
the arguments *, CHARLIE, and DOG are in
parameter list, and the address of the list is in
your program receives control.
doublewords in a
register 1 when
Note: You cannot use the argument list to override default options
for the compilers or for the LOAD or START commands.
4. The RUN command is not designed for use with CMS/DOS. 5. The RUN EXEC cannot be used for COBOL and PL/I programs that
require facilities not supported under CMS. For specific language
support limitations, see Any responses are from the programs or procedures that executed within
Previous Page Next Page