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:
Open a COBOL file in the COBOL editor.
Click Window > Preferences.
In the Preferences window, expand COBOL and click Editor.
Click the Reference Format tab.
Under Settings for AutoTag, do the following:
Type a value (for example, your username) with a maximum of six characters in the Tag in Columns 1-6 box.
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.
After opening the editor, right-click the editor and clear Toggle Update Tag to toggle this option.
Click Apply > OK.
When you change a line of code in the COBOL file, the tag is placed automatically on the corresponding line.
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:
Click
OS 2200 > Configure Tag for Col 73-80.
Alternatively, you can press Ctrl+Shift+F5.
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.
Click OK.
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.