Top
NetCOBOL V11.0 NetCOBOL Studio User's Guide
FUJITSU Software

A.1.28 NSPCOMP compile option

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:

The NSPCOMP(ASP) option is invalid for the following comparisons:

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.