02.07.2013 Views

Type III C lass A Program

Type III C lass A Program

Type III C lass A Program

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

EXEC<br />

Purpose:<br />

EXEC executes one or more CMS commands contained<br />

specified file. allowing a sequence of commands<br />

executed by issuing a single command.<br />

Format:<br />

EXEC filename 1<br />

in a<br />

to be<br />

filename specifies the filename of a file containing one or<br />

more CMS command to be executed. The filetype must<br />

be EXEC.<br />

argI, •• '. argN are the arguments to replace the numeric<br />

variables in the file wfilename EXEC ft •<br />

Usage:<br />

EXEC executes the sequence of commands that are specified in<br />

the file ftfilename EXEC w • This file must be in card-image<br />

form, and must consist of one CMS command per card image in<br />

the same format as the command is entered at the terminal.<br />

The filetype for the specified file must be EXEC. EXEC<br />

files can be created by the EDIT or LISTF commands, or by a<br />

user·s program.<br />

Each CMS command in the EXEC file can have from one to<br />

thirty numeric variables. A numeric variable is made up of<br />

an ampersand (&) followed by an integer ranging from one to<br />

thirty. (that is, &1&2 ••• &30). Before the command is<br />

executed" each variable is temporarily replaced by an<br />

argument specified when the EXEC comroand was issued. For<br />

example, each time an &1 appears as a variable in an EXEC<br />

line. t:le first argument specified with the EXEC command<br />

temporarily replaces the &1, the second argument specified<br />

with the EXEC command replaces &2. and so on, to argument N<br />

of the EXEC command.<br />

If the double quotation mark (ft) is used in place of an<br />

argument,. the corresponding variable (&N) is ignored in all<br />

the commands which reference that variable. If the<br />

specified EXEC file contains more variables than arguments<br />

given with the EXEC command, the higher numbered variables<br />

are assumed to be missing, and are ignored when the commands<br />

are executed.<br />

Arguments can be concatenated to the right side of any word<br />

in an EXEC line. For example, the EXEC line LISTF ABC&1<br />

FORTRAN&2 would result in LISTF ABCXYZ FORTRAN, if arg1 is<br />

XYZ and arg2 is unspecified. Use of the double quote (W)<br />

for arg1 would cause the variable to be ignored leaving<br />

EXEC 175

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!