Rational Developer for System z

Setting preferences for sequence numbers

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

Procedure

  1. Click Window > Preferences, and then click + to expand COBOL.
  2. Click Editor > Sequence Numbers.
  3. To enable sequence number management click Manage sequence number checkbox.
  4. Select one or more of the following options.
    Enable Smart Copy
    If enabled, text in the sequence number and identification areas is replaced by spaces when you copy the text. If Insert sequence numbers into new lines option is enabled, lines that are pasted into the file are renumbered.
    Enable Smart Join Lines
    If enabled, text in the sequence number and identification area and trailing white spaces are deleted when lines are joined.
    Insert sequence numbers into new lines
    If enabled, sequence numbers are inserted when adding new lines to a file. The location of the sequence numbers is determined by the Start numbering at column 1 option.
    Resequence numbers when necessary
    This option controls the behavior in the situation where Insert sequence numbers into new lines is enabled and there are not enough available numbers at the location where new the lines are inserted into the file. If enabled, surrounding lines are renumbered. If this option is not enabled, no sequence numbers are added to the inserted lines.
  5. The Start Numbering at Column 1 option determines the location of where sequence numbers are inserted and removed from a file. If enabled, sequence numbers are inserted and removed from the sequence number area. If disabled, sequence numbers are inserted and removed from the identification area. The Renumber and Unnumber editor actions are affected by this option.
  6. Click Apply > OK.

Feedback