Previous Topic Next topic Print topic


ADDSYN

Defines a user-defined reserved word to be synonymous with an existing reserved word.

Syntax:

>>-.---.--ADDSYN--"rsv-word" = "user-word"-><
   +-/-+

Parameters:

rsv-word
Existing reserved word.
user-word
Any COBOL word not the same as an existing reserved word.

Properties:

Default: No reserved word synonyms are created.
Phase: Syntax check
$SET: Initial

Comments:

This directive does not appear in the list created with the SETTING directive.

The equals sign must be surrounded by spaces.

You can also leave a space between the directive and its option to improve readability (applies to UNIX environments only). If you are specifying this directive to the -C option of the Cob command line, you need to ensure that all characters are escaped correctly for the UNIX shell. For example, to specify ADDSYN on the command line:

cob -C 'addsyn "low" == "lowlight"' a.cbl
Previous Topic Next topic Print topic