Enabling sequence number handling

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

About this task

Restriction: Sequence number handling is not available when you edit EBCDIC DBCS code.

Procedure

You can open the Sequence Numbers page from the Preferences window or from an edit session.

  1. In the Preferences window, choose one of these options:
    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 select Source > Sequence Numbers > Preferences.
    Tip: To enable sequence number handling from an edit session without changing any of the preference settings, click Source > Sequence Numbers > 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 checkbox.
    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 Numbering options.
    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.
    Enable overflow prevention
    Controls what happens when edits could cause text to overflow into the left sequence number area. If enabled, these edits are prevented.
    COBOL Editor: Enable left sequence number edit prevention
    When enabled, all edits to the left sequence number area are prevented.
    Enable prevention sounds
    When enabled, a notification sound plays when edits are prevented.
    COBOL Editor: Numbering options

    These options determine the location of sequence numbers that are inserted and removed from a file by the Renumber and Unnumber editor actions. Select an option to insert and remove sequence numbers in one or both sequence number areas.

    COBOL Editor: Unnumbering options
    Choose the Preserve non-numeric change markers option to preserve non-numeric text in the sequence number area and the identification area when you use the Unnumber editor action.
  4. Click OK.