records are, by default, variable-length with a logical record length of 80 characters. EXEC can process variable-length file3 of up to 130 characters. To create a variable-length EXEC file larger than 80 characters, use the LRECL option of the EDIT command: edit new exec a (lrecl 130 To convert a variable-length file to a fixed-length file, you can
edit theEXEC file and issue the subcommand:
recfm fOr, you can use the COPYFILE command:
copyfile old exec a (recfm f
If you use fixed-lengthEXEC files, you should be aware that the EXEC interpreter only processes the first 72 characters of each record in a
fixed-length file, regardless of the record length.You can, however,
enter command or data lines that are longer than than 72 characters to
be processed by using the &BEGSTACK,&BEGTYPE, &BEGPUNCH, and &BEGEMSG control statements preceding the line(s) you want to be processed. If
you specify&BEGPUNCH ALL, EXEC processes lines up to 80 characters
long; if you specify&BEGTYPE ALL, &BEGSTACK ALL, or &EEGEMSG ILL, EXEC processes lines up to 130 characters.
In variable-lengthEXEC files, there are no such restrictions; lines
up to130 characters are processed in their entirety.
TwoCMS commands create EXEC files. One is LISTFILE, which can be
invoked with theEXEC option; it creates a file named CMS EXEC. The uses
ofCMS EXEC files are discussed under the heading "CMS EXECs and How To Use The CMS/DOS command LISTIO creates an EXEC file named $LISTIO EXEC, which creates records for each of the system and
programmer logical unit assignments. TheLISTIO command and the $LISTIO EXEC are described in "section 9. Developing DOS Programs Under CMS." INVOKING EXEC FILES EXEC procedures are invoked when you
file.You can precede the filename on
command,EXEC. For example:
exec test type list
enter the filename of
the command line with
theEXEC the CMS where TEST is the filename of the EXEC file and TYPE and LIST are
arguments (&1, &2, and so on) you are passing to theEXEC. For example,
anEXEC named PREPEDIT would be executed when you entered either:
prepedit new file replace
-- or --
exec prep edit newfile replaceYou must precede the EXEC filename with the EXEC command when: • You invoke an EXEC from within another EXEC. • You invoke an EXEC from a program. • You have the. implied EXEC function set off for your virtual machine.
96IBM VM/370 CMS User's Guide
edit the
recfm f
copyfile old exec a (recfm f
If you use fixed-length
fixed-length file, regardless of the record length.
enter command or data lines that are longer than than 72 characters to
be processed by using the &BEGSTACK,
you specify
long; if you specify
In variable-length
up to
Two
invoked with the
of
programmer logical unit assignments. The
file.
command,
exec test type list
enter the filename of
the command line with
the
arguments (&1, &2, and so on) you are passing to the
an
prepedit new file replace
-- or --
exec prep edit newfile replace
96