Information in message CPX8416
If your application is translated into other languages, use 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:
- Code page and character set
- Currency symbol
- Date format
- Date separator
- Decimal format
- Leap year adjustment
- Coded character set identifier
- Time separator
- Language identifier
- Country or region identifier
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
value |
QCHRID
697 37 |
0001
0012 |
10
21 |
L
L |
Description
value |
QCURSYM
$ |
0034
0045 |
10
01 |
L
L |
Description
value |
QDATFMT
MDY |
0047
0058 |
10
03 |
L
L |
Description
value |
QDATSEP
/ |
0062
0073 |
10
01 |
L
L |
Description
value |
QDECFMT | 0075
0086 |
10
01 |
L
L |
Description
value |
QLEAPADJ
0 |
0088
0099 |
10
01 |
L
L |
Description
value |
QCCSID
37 |
0101
0112 |
10
05 |
L
L |
Description
value |
QTIMSEP
: |
0118
0129 |
10
01 |
L
L |
Description
value |
QLANGID
ENU |
0131
0142 |
10
03 |
L
L |
Description
value |
QCNTRYID
US |
0146
0157 |
10
02 |
L
L |
Description
value |
QIGCCDEFNT
*NONE |
0160
0171 |
10
21 |
L
L |