NSYMBOL
The NSYMBOL
option controls the interpretation
of the N
symbol used in literals and PICTURE
clauses,
indicating whether national or DBCS processing is assumed.
Default is: NSYMBOL(NATIONAL)
Abbreviations
are: NS(NAT | DBCS)
With NSYMBOL(NATIONAL)
:
- Data items defined with a
PICTURE
clause that consists only of the symbolN
without theUSAGE
clause are treated as if theUSAGE NATIONAL
clause is specified. - Literals of the form
N". . ."
orN'. . .'
are treated as national literals.
With NSYMBOL(DBCS)
:
- Data items defined with a
PICTURE
clause that consists only of the symbolN
without theUSAGE
clause are treated as if theUSAGE DISPLAY-1
clause is specified. - Literals of the form
N". . ."
orN'. . .'
are treated as DBCS literals.
The NSYMBOL(DBCS)
option provides compatibility
with previous releases of IBM® COBOL,
and the NSYMBOL(NATIONAL)
option makes the handling
of the above language elements consistent with the 2002 COBOL Standard in this regard.
NSYMBOL(NATIONAL)
is
recommended for applications that use Unicode data or object-oriented
syntax for Java™ interoperability.