z/OS TSO/E Command Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


EDIT—RENUM subcommand

z/OS TSO/E Command Reference
SA32-0975-00

Use the RENUM subcommand to:
  • Assign a line number to each record of a data set that does not have a line number.
  • Renumber each record in a data set that has line numbers.
If the data set you are editing contains fixed-length records, new line numbers are placed in the last 8 character positions. There are three exceptions to this general rule:
  • Data set type COBOL - first six positions
  • Data set type VSBASIC - first five positions
  • Data set type ASM and NUM operand specified on EDIT command - positions indicated in NUM operand subfield.

If fixed-length record data sets are being numbered for the first time, any data in the positions indicated previously is overlaid.

If you are editing variable-length records without sequence numbers, the records are lengthened so that an eight-digit sequence field (five digits if VSBASIC) is prefixed to each record. You are notified if any records have been truncated in the process. Records are truncated when the data length plus the sequence length exceeds the maximum record length of the data set you are editing.

In all cases, the specified (or default) increment value becomes the line increment for the data set.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014