The RENUM macro command
immediately turns on number mode and renumbers all lines, starting
with number 100 and incrementing by 100. For any members exceeding
10 000 lines, the increment would be less than 100.
Syntax
Macro command syntax
(1)
.-+-STD---+-----.
.-ON-. | '-COBOL-' |
>>-ISREDIT--RENUM--+----+--+---------------+--+---------+------><
'-STD COBOL-----' '-DISPLAY-'
Notes:
- STD is the default for non-COBOL data set types. COBOL is
the default for COBOL data set types.
- ON
- Automatically verifies that all lines have valid numbers in ascending
sequence and renumbers any lines that are either unnumbered or out
of sequence. It also turns number mode on and renumbers lines.
The
STD, COBOL, and DISPLAY operands are interpreted only when number
mode is turned on.
- STD
- Numbers the data in the standard sequence field.
- COBOL
- Numbers the data in the COBOL field.
- STD COBOL
- Numbers the data in both fields.
If both STD and COBOL numbers
are being generated, the STD number is determined and then used as
the COBOL number. This can result in COBOL numbers that are out of
sequence if the COBOL and STD fields were not synchronized. Use RENUM
to force synchronization.
- DISPLAY
- Causes the width of the data window to include the sequence number
fields. Otherwise, the width of the window does not include the sequence
number fields. When you display a data set with a logical record length
of 80 and STD numbering, the sequence numbers are not shown unless
you are using a 3278 Model 5 terminal, which displays 132 characters.
The editor automatically scrolls left or right, if required, so that
the leftmost column of the data window is the first column displayed.
Return codes
- 0
- Normal completion
- 20
- Severe error
Examples
To renumber all data lines with
standard numbering:
ISREDIT RENUM
To
renumber all data lines with standard and COBOL numbering:
ISREDIT RENUM STD COBOL
To
renumber all data lines with COBOL numbering, bringing the sequence
numbers within the data window:
ISREDIT RENUM COBOL DISPLAY
To
turn sequence numbers off:
ISREDIT RENUM OFF