RENUM—Renumber Data Set Lines
RENUM immediately turns on number mode and renumbers all lines, starting with number 100 and incrementing by 100. For members exceeding 10 000, the increment is less than 100.
Syntax
- 1 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. This is the default for all non-COBOL data set types.
- COBOL
- Numbers the data in the COBOL field. This is the default for all
COBOL data set types. Attention:
If number mode is off, make sure the first 6 columns of your data set are blank before using either the NUMBER ON COBOL or NUMBER ON STD COBOL command. Otherwise, the data in these columns is replaced by the COBOL sequence numbers. If that happens and if edit recovery or SETUNDO is on, you can use the UNDO command to recover the data. Or, you can use CANCEL at any time to end the edit session without saving the data.
- STD COBOL
- Numbers the data in both fields.
If both STD and COBOL numbers are 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 are not synchronized. Use RENUM to synchronize them.
- 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 left most column of the data window is the first column to appear.
Description
RENUM STD
RENUM STD COBOL
RENUM COBOL
RENUM STD COBOL DISPLAY
RENUM DISPLAY
Here, the DISPLAY operand
is the only operand needed because STD is the default.