>>-.---.--SIGN--"convention"--------------->< +-/-+
convention |
For included signs, the sign storage convention must be one of:
or, for the default sign mode:
See Comments for more details. |
Default: | SIGN"ASCII" and SIGN"TRAILING" |
Phase: | Syntax check |
$SET: | Initial |
CHARSET"ASCII" sets SIGN"ASCII" immediately.
CHARSET"EBCDIC" sets SIGN"EBCDIC" immediately.
DIALECT"RM" sets SIGN"EBCDIC" and SIGN"TRAILING" immediately.
Comments:
The convention parameter options have the following meanings:
For .NET COBOL, SIGN"EBCDIC", along with one of HOST-NUMMOVE, HOST-NUMCOMPARE or SIGN-FIXUP is an invalid combination of directives, and is rejected during compilation. For native COBOL, the combination is permitted.
The SIGN directive may be repeated to specify the sign storage convention for included signs and the default sign mode.
The sign modes INCLUDED and TRAILING both indicate a trailing included sign. The sign modes SEPARATE and TRAILING-SEPARATE indicate a trailing separate sign. The sign mode LEADING indicates a leading included sign. The sign mode LEADING-SEPARATE indicates a leading separate sign. The hyphen in the TRAILING-SEPARATE or LEADING-SEPARATE is optional.
If the hexadecimal value B is used as the internal sign representation, SIGN"ASCII" treats the data item as negative; some other COBOL systems (such as RM/COBOL) treat items represented this way as positive.
The default sign mode can be overridden by the NUMERIC SIGN clause in the special-names paragraph or the SIGN clause in a data description entry.