Ap A. National Language Support (NLS) Demonstration [ Micro Focus COBOL for UNIX COBOL User Guide ] MPE/iX 5.0 Documentation
Micro Focus COBOL for UNIX COBOL User Guide
Appendix A National Language Support (NLS) Demonstration
Micro Focus COBOL supports Internationalization as defined in the X/Open
CAE Specification (1991), COBOL Language; also known as XPG4. X/Open
split this down into Single-byte Internationalization Support and
National-character Support which correspond to Micro Focus National
Language Support (NLS) and Double-Byte Character Set (DBCS) support
respectively.
Micro Focus NLS involves no additional COBOL syntax; it provides
additional semantics for various COBOL functions (see the chapter
National Language Support (NLS) in your COBOL System Reference). The NLS
semantics are enabled by the NLS Compiler directive.
This appendix demonstrates NLS functionality by sorting a list of
European place names that include accented characters. The NLS
demonstration sorts the same list using the same code twice. The NLS
Compiler directive is set for the first sort; it is set off (NONLS) for
the second sort. The results of the two sorts are displayed together so
you can compare the different sort sequences.
NOTE The list of names has been encoded in two standard character sets:
ISO 8859-1 and IBM PC. You will need a terminal that can display
one of these in order to run the demonstration. Providing that you
have set up the demonstration's COPY-file correctly, (see the
section Running the Demonstration) the displayed results should be
the same for both ISO 8859-1 and IBM PC character sets.
MPE/iX 5.0 Documentation