EDIT Subcommands-QUIT, RECFM QUIT Use the QUIT subcommand to terminate the current editing session and
leave the previous copy ox ttte if any, intact on the disk. The
format of the QUIT subcommand is: .-- I QUI'! L- 1. You can use the QUIT subcommand when you have made a global change that introduced errors into your file; or whenever you discover
that you have made errors in editing a file and want to cancel your
editing session.
If a SAVE subcommand or automatic save request has been issued. the
file remains as it was when last written.
2. The subcommand is a convenient way to terminate an edit
session when you enter an incorrect filename on the EDIT command
line, or when you edit a file merely to examine, but not to change,
its contents.
The CMS ready message indicates that control has been returned to CMS. RECFI\,1! Use the RECFM subcommand to indicate to the editor whether the record
format of the file is fixed-length or variable-length, or to display the
current RECFM setting. The format of the RECFM subcommand is: r I r , I RECfm 'PI 1111 , ., L J __________________________________________________________ -J F indicates fixed-length records.
v indicates variable-length records.
1. V is assumed by default for all new EXEC, LISTING, FREEFORT, VSBDAT!, and SCRIPT files. Usually, a format file
occupies a smaller amount of disk space because trailing blanks are
deleted from each line before it is written onto disk. When variable-length VSBDATA files are written to disk, however,
trailing blanks are not truncated (to allow VSBDATA file to span
records) .
Section 3. EDIT Subcommands and Macros 241
EDIT Subcommands-RECFM, RENUM 2. When you use the RECFM subcommand to change the format of a file from fixed-length to variable-length records, trailing blanks are
removed when the file is written to disk; when you are changing
vaLiable-length records to fixed-length, all records are padded to
the record length. When you use the RECFM subcommand without specifying F or V, the current
setting is displayed. When you specify a new record format with the RECFM subcommand, the
editor writes the new record format in the format field at the top of
the screen.
RENUM Use the RENUM subcommand to recompute the line numbers for VSBASIC and
FREE FORT source files. The format of the RENUM subcommand is: r ---------------------------------------------------------, I , r r " , I RENum , I strtno I incrnol , , I , I lQ l,§trtnQI' , I ILL .J.J , L- 1
indicates the number from which you wish to start renumbering
your file. Because RENUM renumbers the whole file from
beginning to end, the number you specify as strtno becomes the
statement number of the first statement in the newly
renumbered file. This number may not exceed 99999 for VSBASIC files or 99999999 for FREEFORT files. The default start
number value is 10 and the specified start number must not be
indicates the increment number value by which you wish to
renumber your file. This value may not exceed 99999 for VSBASIC files or 99999999 for FREEFORT files. The default for
incrno is strtno, the first sequence number in the renumbered
file, and the specified incrno must not be zero.
1. If you do not specify strtno and incrno, the default value for both
is 10. If you specify only strtno, incrno d9faults to the same
value as strtno.
2. The current line pointer remains as it was before you entered the RENUM subcommand regardless of whether or not RENUM completes
successfully. If you are editing a VSBASIC file, the file to be
renumbered must either originate from a read/write disk or you must
issue an FMODE subcommand to change the file destination to a
read/write disk.
2U2 IBM VM/370 CMS Command and Macro Reference
Previous Page Next Page