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.


Release note for SPFLite version 8.5


In SPFLite prior to release 8.5, the editor primary command REN was an abbreviation for the command RENAME.  As of SPFLite version 8.5, the editor primary command REN is now an abbreviation for the sequence numbering command RENUM.  This change was made for ISPF compatibility.


Because of this change, the RENAME command no longer has any abbreviations.  You must fully spell out the editor primary command name RENAME.


Created with the Personal Edition of HelpNDoc: Write eBooks for the Kindle