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 the EXEC file and issue the subcommand:
recfm f Or, you can use the COPYFILE command:
copyfile old exec a (recfm f
If you use fixed-length EXEC 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-length EXEC files, there are no such restrictions; lines
up to 130 characters are processed in their entirety.
Two CMS commands create EXEC files. One is LISTFILE, which can be
invoked with the EXEC option; it creates a file named CMS EXEC. The uses
of CMS 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. The LISTIO 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
the EXEC 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 the EXEC. For example,
an EXEC named PREPEDIT would be executed when you entered either:
prepedit new file replace
-- or --
exec prep edit newfile replace You 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.
96 IBM VM/370 CMS User's Guide
March 30, 1979
The implied EXEC function is controlled by the SET command. If you
issue the command:
set impex off
then you must use the EXEC command to invoke an EXEC procedure. The
default setting is ON; you almost never need to change it.
There is one EXEC file that you never have to specifically invoke.
This is a PROFILE EXEC, which is automatically executed after you load CMS, when your A-disk is accessed. PROFILE EXECs are discussed next. PROFILE EXECs
A PRO-FTLR EXEC must have a filename of PROFILE. It can contain the CP and CMS commands you normally issue at the start of every terminal
session. For example: Commands that describe your terminal characteristics, such as: CP SET LINEDIT ON SET BLIP *
SET RDYMSG SMSG SYNONYM MYSYN Commands that spool your printer and punch for particular classes or characteristics: CP SPOOL E CLASS S HOLD Commands to initialize macro and text libraries that you commonly use: GLOBAL MACLIB OSMACRO CMSLIB GLOBAL TXTLIB PRIVLIB @ Commands to access disks that are
configuration: ACCESS 196 B
a permanent part of your
A PROFILE EXEC file that contains all of these commands might look
like this: &CONTROL OFF CP SET LINEDIT ON CP SPOOL E CLASS S HOLD SET RDYMSG SMSG SET BLIP * SYNONYM MYSYN GLOBAL MACLIB OSMACRO CMSLIB GLOBAL TITLlB PRlVLlB ACCESS 196 B &CONTROL OFF is an EXEC control
and CMS command lines are not to
they execute.
statement that specifies that the CP be displayed on your terminal before
A PROFILE EIEC can be as simple or as complex as you require. As an EXEC file, it can contain any valid EXEC control statements or CMS commands. The only thing that makes it special is its filename, Section 6. Introduction to the EXEC Processor 97
Previous Page Next Page