z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


RENUM—Renumber Data Set Lines

z/OS ISPF Edit and Edit Macros
SC19-3621-00

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

Read syntax diagramSkip visual syntax diagram
                                  (1)                  
                      .-+-STD---+-----.                
              .-ON-.  | '-COBOL-'     |                
>>-+-RENUM-+--+----+--+---------------+--+---------+-----------><
   '-REN---'          '-STD COBOL-----'  '-DISPLAY-'   

Notes:
  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

To renumber all lines using the standard sequence fields only:
RENUM STD
To renumber all lines using both the standard and COBOL sequence fields:
RENUM STD COBOL
To renumber all lines using the COBOL sequence fields only:
RENUM COBOL
To renumber all lines using both the standard and COBOL sequence fields and specifying that the data window is to include the sequence number fields:
RENUM STD COBOL DISPLAY
To renumber all lines by using the standard sequence fields only and specifying that the data window is to include the sequence number fields:
RENUM DISPLAY
Here, the DISPLAY operand is the only operand needed because STD is the default.

Examples

In Figure 1, the line numbers are not incremented uniformly. Type RENUM on the command line. Figure 2 shows how the lines are renumbered after you press Enter.

Figure 1. Member before lines are renumbered
Screen dump.
Figure 2. Member after lines are renumbered
Screen dump.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014