Specifies the default convention for signs in signed numeric DISPLAY data items.
Syntax:
>>-.---.--SIGN--"convention"---------------><
+-/-+
Parameters:
convention
|
For included signs, the sign storage convention must be one of:
- ASCII
- MF (identical to ASCII)
- EBCDIC
- IBM (identical to EBCDIC)
- acu
- mbp
- ncr
- realia
- vax
or, for the default sign mode:
- INCLUDED
- TRAILING
- SEPARATE
- TRAILING-SEPARATE
- LEADING
- LEADING-SEPARATE
See
Comments for more details.
|
Properties:
Default:
|
SIGN"ASCII" and SIGN"TRAILING"
|
Phase:
|
Syntax check
|
$SET:
|
Initial
|
Dependencies:
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 managed 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.
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.