being executed from within the EXEC, you do not receive the CMS ready
message at the completion of each command. You could also enter EXEC control statements or assignment
statements. To terminate the EXEC and return to the CMS environment,
you must enter the EXEC control statement &EXIT from the terminal:
&exit DISPLAYING DATA AT A TERMINAL You can use the &TYPE and &BEGTYPE control statements from your EXEC at the terminal. In addition, you can
command to display the contents of CMS files.
to display lines
use the CMS TYPE When you use the &TYPE control statement, you can display variable symbols as well as data. Variable symbols on an &TYPE control statement
are substituted before they are displayed. For example, the lines: &NAME = ARCHER &TYPE &NAME result in the display:
ARCHER You can use the &TYPE statement to display prompting messages, error
or information messages, or lines of data.
In an EXEC file with fixed-length records, only the first 72
characters of each line are processed by the EXEC interpreter.
Therefore, if you want to use the &TYPE control statement to display a
line longer than 72 characters, you must convert the file into
variable-length records.
All of the words in an &TYPE control statement are scanned into
a-character tokens. If you need to display a word that has more than a characters, you must use the &BEGTYPE control statement. The &BEGTYPE control statement precedes one or more data lines that you want to
display; for example: &BEGTYPE THIS EXEC PERFORMS THE FOLLOWING FUNCTIONS: 1. IT ACCESSES DISKS 193, 194, and 195 AS B, C, AND D EXTENSIONS OF THE A-DISK. 2. IT DEFINES, FORMATS, AND ACCESSES A TEMPORARY 195 DISK (E).
&END
The &END statement must be used to terminate a series of lines
introduced with the &BEGTYPE statement. "&END" must begin in column 1 of
the EXEC file.
The lines following an &BEGTYPE statement, up to the &END statement,
are not scanned by the EXEC interpreter. Therefore, no substitution is
performed on the variable symbols on these data lines. If you need to
display a symbol, you must use the &TYPE control statement. To display a
286 IBM VM/370 eMS User's Guide
Paqe of GC20-1819-2 As Updated April 1, 1981 by TNL GN25-0826 of scanned and unscanned lines, you miqht need to use both
the STYPE and &BEGTYPE control statements: eBEGTYPE EVALU!TION BEGINS ••• &END &TYPE IS &NUM1. &TYPE IS &NUM2. &BEGTYPE COMPLETE. &END If voa use the fBEGTYPE control statement in an
fixed-length records, and you want to iisplay lines characters, you must use the ALL operand. For example: &BEGTYPE !LL ••• data line of 103 characters ••• data line of 98 characters ••• data line of 50 characters &END EXEC file with
longer than 72 You can display lines of up to 130 characters in this way. When you
enter lines that are longer than the record length in an EXE: file, the
records are truncated bV the editor. You must increase the record length
of the file bV usinq the LRECL option of the EDIT command, for example:
edit old exec a (lrecl 130 You can use the command in an EXEC file to display data files, or portions data files. For example, you miqht have a number of files
with the same filetvpe; the files contain various kinds of data. You conli =reate an EXEC that invokes the TYPE command to display a
particular file as follows: &IF &INDEX EQ 2 &IF &2 EQ ? &GOTO -TYPE ACCESS 1qB B TYPE 51 F The filetype is a reserved uppercase ani lowercase; you.can proqramminq notes.
filetype,
use it for
which accepts data
documentation files
in
or
The CMS Immediate commands that control terminal display are HT
(halt and FT (resume typing). When data is being displayed at your terminal, you can suppress the display by signaling an attention
interruption and enterinq:
ht
Section 14. Building EXEC Procedures 281
Previous Page Next Page