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
strtno
incrno
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
zero.
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
EDIT Subcommands-RENUM, REPEAT
3. All VSBASIC statements that use statement numbers for operands are
updated to reflect the new line numbers. The VSBASIC statements
with line number operands are:
4. CLOSE CLOSEFILE DELETE EXIT GET GOSUB GOTO IF ON OPEN OPENFILE PRINT USING PUT If any error occurs during the
terminates the RENUM operation and
unchanged.
READFILE
REREADFILE RESET RESETFILE
REWRITEFILE WRITEFILE RENUM operation, the editor
the file being edited remains When verification is on, the message EDIT: indicates that the RENUM subcommand completed processing.
REPEAT Use the REPEAT subcommand to execute the immediately following OVERLAY subcommand (or an X or Y subcommand assigned to invoke OVERLAY) for the
specified number of lines or to the end of the file. The format of the REPEAT subcommand is:
r------
i r , , REPEAT Inl I 1*' I III , L .J L- n indicates the number of times to repeat the OVERLAY request that immediately follows, beginning with the current line. An asterisk
(*) indicates that the request is to be repeated until the end of
the file is reached. If neither n nor * is specified, then only
one line is handled. The last line processed becomes the new
current line.
1. If the next subcommand issued after the REPEAT subcommand is not an OVERLAY subcommand
6
the REPEAT subcommand is ignored= 2. For an example of a REPEAT subcommand followed by an OVERLAY subcommand, see the discussion of the OVERLAY subcommand.
None. Section 3. EDIT Subcommands and Macros 243
Previous Page Next Page