RENUM - Evenly renumber lines in file
Syntax
RENUM |
|
Operands
RENUM has no operands
Abbreviations and Aliases
RENUM can also be spelled as REN and RENUMBER
Description
The RENUM command will completely assign new sequence numbers. The starting number and increment are based on the number of lines in the file, and the specified size of the sequence number field. The following table summarizes this.
File Size |
Sequence # Size |
Starting Number |
Increment |
Under 1000 |
4 |
0010 |
10 |
5 |
00100 |
100 |
|
6 |
000100 |
100 |
|
7 |
0000100 |
100 |
|
8 |
00000100 |
100 |
|
Under 10000 |
4 |
0001 |
1 |
5 |
00010 |
10 |
|
6 |
000100 |
100 |
|
7 |
0000100 |
100 |
|
8 |
00000100 |
100 |
|
Under 100000 |
4 |
0001 |
1 |
5 |
00001 |
1 |
|
6 |
000010 |
10 |
|
7 |
0000100 |
100 |
|
8 |
00000100 |
100 |
|
Under 1000000 |
4 |
0001 |
1 |
5 |
00001 |
1 |
|
6 |
000001 |
1 |
|
7 |
0000010 |
10 |
|
8 |
00000100 |
100 |
All numbering commands replace data in existing column positions, with no attempt to save or shift-over your data to make room for these numbers. It is an "overlay operation", not an "insert operation". So, for instance, if you use COBOL numbering, columns 1-6 of every line of your file will be replaced by sequence numbers, regardless of any data that may already be present there. It is your responsibility to alter the contents of your file, if necessary, if that is not the outcome you wanted.
See Working with Sequence Numbering for more information.
Note:
In order to maintain compatibility with IBM ISPF, SPFLite uses REN as an abbreviation for RENUM (RENUMBER) rather than RENAME. However, most SPFLite users are likely to use RENAME far more often than the mainframe-oriented RENUMBER command. If you use RENAME frequently, and would prefer to be able to use REN as an abbreviation for RENAME, you can issue the following SET command:
SET ALIAS.REN = RENAME
Or, you can issue a SET command with no arguments to bring up the SET EDIT screen, and enter a line like this:
ALIAS.REN=RENAME
Created with the Personal Edition of HelpNDoc: Transform your help documentation into a stunning website