Enabling sequence number handling

Use the Sequence Numbers preference page to specify how sequence numbers are handled when you edit a file.

Procedure

You can open the Sequence Numbers page from the menu bar or from an edit session.

  1. From the menu bar, click Window > Preferences, and then do one of these steps:
    Editor Instructions
    COBOL Editor Click COBOL > Editor > Sequence Numbers
    JCL Editor Click JCL > Editor > Sequence Numbers
    PL/I Editor Click PL/I > Editor > Sequence Numbers
  2. From an edit session, right-click and click Source > Sequence Numers > Preferences.
    Tip: To enable sequence number handling from an edit session without changing any of the preference settings, click Source > Sequence Numers > Manage Sequence Numbers. This action enables sequence number handling, but does not open the preference page.
  3. To enable sequence number management, select the Manage sequence numbers check box.
    Select one or more of the following options.
    Enable Smart Copy
    Text in the sequence number and identification areas is replaced by spaces when you copy the text. If Insert sequence numbers into new lines is enabled, lines that are pasted into the file are renumbered.
    Enable Smart Join Lines
    Text in the sequence number and identification area and trailing white spaces are deleted when lines are joined.
    Insert sequence numbers into new lines
    Sequence numbers are inserted when you add new lines to a file.
    COBOL Editor: The location of the sequence numbers is determined by the Start Numbering at Column 1 option. If this option is selected, sequence numbers are inserted and removed from the sequence number area. If it is cleared, sequence numbers are inserted and removed from the identification area. The Renumber and Unnumber editor actions are affected by this option.
    Resequence numbers when necessary
    This option controls what happens when Insert sequence numbers into new lines is enabled but there are not enough available numbers at the location where the new lines are inserted into the file. If this option is selected, surrounding lines are renumbered. If this option is cleared, no sequence numbers are added to the inserted lines.
  4. Click OK.

Feedback