Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
AUTONUM—Number Lines Automatically z/OS ISPF Edit and Edit Macros SC19-3621-00 |
|
The AUTONUM primary command sets autonum mode, which controls the automatic renumbering of data when it is saved. Syntax.-ON--. >>-AUTONUM--+-----+-------------------------------------------->< '-OFF-'
DescriptionWhen number mode is on (see (xref refid="number"), the first line of a data set or member is normally line number 000100, the second number is 000200, and so forth. However, as lines are inserted and deleted, the increment between line numbers can change. For example, you might think that when a line is inserted between 000100 and 000200, line 000200 would be given the number 000300 and the new line would become 000200. Instead, the existing lines retain their numbers and the new line is given line number 000110. Therefore, if the original line number increments are important to you, the AUTONUM command renumbers your lines automatically so that the original increments are maintained. Autonum mode is saved in the edit profile. To check the current settings of number mode and autonum mode:
To turn on autonum mode:
To turn off autonum mode:
ExamplesThis example shows a practical
application of AUTONUM command usage. You have been editing a data
set with number mode on.
Note: If you are editing a data set or member
with number mode off and then decide to turn number mode on, make
sure that columns 1 through 6 of your data set are blank. Otherwise,
the sequence numbers created by the NUMBER command can overlay any
of your data in columns 1 through 6. Use either the COLUMN SHIFT or
DATA SHIFT line command to indent the data.
You now want to end the edit session. However, since you had to insert and delete many lines, your line numbering is no longer uniform. Therefore, you decide to use autonum mode so that the next time you edit this data set the line numbers will be correct.
|
Copyright IBM Corporation 1990, 2014
|