Use this option to specify how to treat a national space in a comparison. Specify NSPCOMP(NSP) to treat the national space as a national space; specify NSPCOMP(ASP) to treat the national space as an ANK space.
When NSPCOMP(ASP) is specified, an encode national space decided by compiler options is treated the same as the ANK blank in two bytes for UTF16, and treated to the same as the ANK blank in four bytes for UTF32.
The NSPCOMP(ASP) option is valid for the following comparisons:
National character comparison that has a national item as an operand
Nonnumeric comparison that has a group item as an operand
The NSPCOMP(ASP) option is invalid for the following comparisons:
Comparison between group items that do not include national items
Comparison between group items that include items that are not explicitly or implicitly used for display
Comparison between group items including a national item with a different encode method
Comparison of a national character that has an encode method different from the encode decided by the compiler options
Item | Description | |
---|---|---|
Japanese-language space comparison specification | Use this option to specify how to treat a national space in a comparison. The default is NSP. | |
NSP | Treats national spaces as national spaces. | |
ASP | Treats national spaces as ANK spaces. |
Note
In a non-numeric comparison or national character comparison in processing INSPECT, STRING, or UNSTRING statements, or in a key operation for an index file, national spaces are not treated as equivalent to ANK spaces regardless of the specification of the NSPCOMP(ASP) option.
If NSPCOMP(ASP) is specified, each ANK space is treated as a national character under the JAPANESE class condition.