If you do not specify a record length, the editor assumes the
following defaults:• For editing old files, the existing record length is used. • For creating new files, the following default values are in effect: EXEC FREEFORT LISTING SCRIPT VSBDATA All others 80 characters
81 characters
121 characters
132 characters
132 characters80 Format VarIable variable Variable Variable Variable Fixed
If you edit a variable-length file and the existing record length is
less than the default for the filetype, the record length is taken from
the defaultvaluee When you use the LRECL option of the EDIT command you can override
these default record lengths; you can also change the record lengths of
existing files to make them larger, but not smaller.
If you try to override the record length of an existing file and make
it smaller, the editor displays an errormessage, and you must issue the
EDIT command again with a larger record length. For example, suppose
you have on your B-disk a file namedMYFILE FREEPORT, which was created
with the default record length of 81. If you try to edit that file by
issuing:
edit myfile freefort b (lrecl 72
the editor displays the message:GIVE A LARGER RECORD LENGTH. You must then issue the EDIT command again and either
of 81 or more, or allow it to default to the current
the file.
specify a length
record length ofYou can use the COPYFILE command to increase or decrease the record
length of a file before you edit it. For example, if you have
fixed-length, 132-character records in a file, and you want to truncate
all the records atcolUmn 80 and create a file with 80-character
records, you could issue the command:
copyfile extra funds a (lrecl80 The largest record you can edit with the editor is 160 file with record length up to 160 bytes (for example, a
created by aDOS program) can be displayed and edited.
characters. A
listing file
The largest record you can create with theCMS editor, however, is 130 characters using a 3270 display terminal and 134 characters using a
typewriter terminal such as a 2741 or1050. If you enter more than 130 characters on a 3270, the record is truncated to 130 characters when you
press the Enter key. Note that as the line is truncated to130 characters, the CMS editor will not know the actual line length entered,
and will not issue the"TRUNCATED" messgae. If you type more than 134
characters on a line using a typewriter terminal,CP generates an
attention interruption to your virtual machine and the input line is
lost when you press the Return key.
74IBM VM/370 CMS User's Guide
following defaults:
81 characters
121 characters
132 characters
132 characters
If you edit a variable-length file and the existing record length is
less than the default for the filetype, the record length is taken from
the default
these default record lengths; you can also change the record lengths of
existing files to make them larger, but not smaller.
If you try to override the record length of an existing file and make
it smaller, the editor displays an error
EDIT command again with a larger record length. For example, suppose
you have on your B-disk a file named
with the default record length of 81. If you try to edit that file by
issuing:
edit myfile freefort b (lrecl 72
the editor displays the message:
of 81 or more, or allow it to default to the current
the file.
specify a length
record length of
length of a file before you edit it. For example, if you have
fixed-length, 132-character records in a file, and you want to truncate
all the records at
records, you could issue the command:
copyfile extra funds a (lrecl
created by a
characters. A
listing file
The largest record you can create with the
typewriter terminal such as a 2741 or
press the Enter key. Note that as the line is truncated to
and will not issue the
characters on a line using a typewriter terminal,
attention interruption to your virtual machine and the input line is
lost when you press the Return key.
74