If your application will be translated into other languages, use the message CPX8416 from the QCPFMSG message file to get the correct setting for some cultural values for the other languages. The message exists for your primary language and all installed secondary language libraries.
The system message contains these values:
Cultural-dependent fields in the panel or display should not contain hard-coded values. These fields should be defined with the maximum length permitted for the field on the display.
If your application is to support users in languages other than the primary language, the callable routines should use the CPX8416 message values. A callable routine uses the cultural values for the primary language to determine the contents of the field (for example, date format) and places these values on the display. NLS system values maintained in message CPX8416 determine the format of the cultural values appearing in the cultural-dependent fields.
Your application can use the details from the system message.
The following table shows the layout for message CPX8416. This example shows the values in the text column using the English uppercase and lowercase NLV (feature 2924).
Field | Start | Length | Justify | |
---|---|---|---|---|
Description |
QCHRID |
0001 |
10 |
L |
Description |
QCURSYM |
0034 |
10 |
L |
Description |
QDATFMT |
0047 |
10 |
L |
Description |
QDATSEP |
0062 |
10 |
L |
Description |
QDECFMT | 0075 |
10 |
L |
Description |
QLEAPADJ |
0088 |
10 |
L |
Description |
QCCSID |
0101 |
10 |
L |
Description |
QTIMSEP |
0118 |
10 |
L |
Description |
QLANGID |
0131 |
10 |
L |
Description |
QCNTRYID |
0146 |
10 |
L |
Description |
QIGCCDEFNT |
0160 |
10 |
L |