March 30, 1979 MODIFYING CMS EXECS A CMS EXEC is like any other CMS file; you can edit it, erase it, rename
it, or change it. If you have created it to catalog a particular group
of files, you might want to rename it; each time you use the LISTFILE
com.and with theEXEC option a CMS EXEC is created, and any old CMS EXEC is erased. To rename it, you can use the CMS RENAME command, or, if you
are editing it, you can rename it when you file it:
edit cms exec
input &ccntrol off
file prfile execYou might also want to edit a CMS EXEC to provide it with more
numeric variables; for example:
editCIIS exec
input &ccntrol off
input cp spool printer class s cont
changelal/a1 &3 &4 &5 &61 *
input cp spool printer nocont
input cp close printer
file prfile exec
prfile print% (cc When this EXEC is executed, the variable &1 is substituted with PRINT,
the variable &2 is set to a null string (the special character% indicates that you are not passing an argument to it), and &3 and &4 are
set to the PRINT command option (CC, so that the files in theEXEC print
with carriage control. The CPcommands that are inserted ensure that
the files print as a single spool file, and not individually.
Summary of the EXEC LanguageFacilities The EXEC processor, or interpreter, recognizes keywords that begin with
the special characterampersand (&). Keywords may indicate: • Control statements • Built-in functions • Special variables • Arguments You may also define your own variables in an EXEC file; the EXEC interpreter can process them as long as they begin with an a.persand.
The following pages briefli discuss the kinds of things you can do with
anEXEC, introduce you to the control statements, built-in functions,
and special variables, and give some examples of how to use theEXEC processor. If you want more information on writing EXEC procedures, see "Part 3. Learning To Use EXEC." For specific information on the format
and usage rules for anyEXEC statement or variable, consult the In general the following rules apply to entering lines into an EXEC procedure:
1.Most input lines (with a few exceptions) are scanned during
execution of theEXEC. Every word on a line is padded or truncated 100 IBM VM/370 CMS User's Guide
it, or change it. If you have created it to catalog a particular group
of files, you might want to rename it; each time you use the LISTFILE
com.and with the
are editing it, you can rename it when you file it:
edit cms exec
input &ccntrol off
file prfile exec
numeric variables; for example:
edit
input &ccntrol off
input cp spool printer class s cont
change
input cp spool printer nocont
input cp close printer
file prfile exec
prfile print
the variable &2 is set to a null string (the special character
set to the PRINT command option (CC, so that the files in the
with carriage control. The CP
the files print as a single spool file, and not individually.
Summary of the EXEC Language
the special character
The following pages briefli discuss the kinds of things you can do with
an
and special variables, and give some examples of how to use the
and usage rules for any
1.
execution of the