Setting Automatic Tagging

In COBOL files, it is a requirement to mark each changed or added line with a tag identifying the author of the change. This feature allows you to configure a tag that is placed in columns 1 through 6 of a COBOL file when that line is changed.

To specify a value for automatic tagging, do the following:

  1. Open a COBOL file in the COBOL editor.

  2. Click Window > Preferences.

  3. In the Preferences window, expand COBOL and click Editor.

  4. Click the Reference Format tab.

  5. Under Settings for AutoTag, do the following:

    1. Type a value (for example, your username) with a maximum of six characters in the Tag in Columns 1-6 box.

    2. Select the Default to Auto Tagging check box.

      This check box provides an option to enable or disable automatic tagging when a COBOL editor is first opened.

  1. After opening the editor, right-click the editor and clear Toggle Update Tag to toggle this option.

  2. Click Apply > OK.

When you change a line of code in the COBOL file, the tag is placed automatically on the corresponding line.

Configuring a Tag in Columns 73 Through 80

This feature enables you to configure a tag that is placed in columns 73 through 80 of a COBOL element.

To configure a tag in the columns 73 through 80, do the following:

  1. Click OS 2200 > Configure Tag for Col 73-80.

    Alternatively, you can press Ctrl+Shift+F5.

  2. In the Tagging dialog box, type a tag name in the Tag in Columns 73-80 box.

    The Tag in Columns 73-80 accepts a maximum of eight characters.
     
    Note: If you have already used a tag before, you can select the same tag from the Tag in Columns 73-80 list. The Tag in Columns 73-80 list can store up to a maximum of 10 tags. 

  3. Click OK.     

  4. Select the lines where you want to insert the tag, and press Ctrl+T. The tag is inserted in the lines you selected, or in the line where the cursor is placed. Note:  Alternatively, you can click on the tool bar to insert the tag.