EXEC EXEC Use the command to execute one or more CMS commands or EXEC control
statements contained in a specified EXEC file. The format of the EXEC command is:
r
fn [args ••• ] I L- ____________ . ________ -J [EXec] indicates that the EXEC command may be omitted if you are
executing the EXEC procedure from the CMS command environment
and have not issued the command SET IMPEX OFF. fn is the filename of a file containing one or more CMS commands
and/or EXEC control statements to be executed. The filetype of
the file must be EXEC and the file can have either fixed-or
variable-length records with a logical record length not
exceeding 130 characters. EXEC files can be created with the
EDIT command or by a user program. EXEC files created by the CMS editor have, by default, variable-length, 80-character
records.
args are any arguments you wish to pass to the EXEC. The arguments
are assigned to the special variables &1 through &30 in the
order in which they appear in the argument list.
"Section 5. EXEC Control statements" contains complete descriptions
of EXEC control statements, special variables, and built-in functions.
For information on designing EXEC procedures and examples of control
word usage, see the User'§ Guigg. The amount of information displayed during the execution of an
depends on the setting of the &CONTROL control statement, which
default displays all eMS commands, responses, and error messages.
addition, it displays nonzero return codes from CMS in the format:
+++ R(nnnnn) +++
where nnnnn is the return code from the CMS command. EXEC by
In
For jetails, see the description of the &CONTROL control statement in
"Section 5. EIEC Control Statements." Section 2. CMS Commands 85
E1CEC If the E1CEC interpreter finds an error, it displays the message: DMSEXT012E ERROR IN EXEC FILE filename, LINE nnnn -description possible errors, and the associated return codes, are: !!g§££iE1i2!! FILE NOT FOUND &SKIP OR &GOTO ERROR BAD FILE FORMAT TO) MANY ARGUMENTS MAX DEPTH OF LOOP NESTING EXCEEDED ERROR READING FILE INVALID SYNTAX INVALID FORM OF CONDITION INVALID ASSIGNMENT MISUSE OF SPECIAL VARIABLE ERROR IN &ERROR ACTION CONVERSION ERROR TOO MANY TOKENS IN STATEMENT MISUSE OF BUILT-IN FUNCTION EOF FOUND IN LOOP INVALID CONTROL WORD EXEC ARITHMETIC UNDERFLOW EXEC ARITHMETIC OVERFLOW SPECIAL CHARACTER IN VARIABLE SYMBOL DMSEXC001E NO FILENAME SPECIFIED RC=2q Return 801 802 803 80q 805 806 801 808 809 810 812
813 81q 815
816
817
818
819
86 IBM VM/370 CMS Command and Macro Reference
Previous Page Next Page