System reply list

The system reply list has a CCSID of 65534. You cannot change or display this value.

The only part of the system reply list that is affected by CCSID processing is the Compare data field. If the Compare data field references replacement data that is defined as *CCHAR, the data being compared must be in a common CCSID before the comparison is done.

Any reply list entry that has compare data is tagged with the CCSID supplied on the ADDRPYLE or CHGRPYLE commands. When the system reply list is used, the replacement data is converted to the CCSID of the compare data before the comparison is made and before the message is sent to the message queue. This ensures that the data is in a common CCSID before the comparison is done.

Example: System reply list and converted-character compare data

Enter the following Add Reply List Entry command:

ADDRPYLE SEQNBR(101) MSGID(TST0010) CMPDTA(X'00017B') RPY(*DFT) +
CCSID(37)

X'7B' is the number sign (#) on code page 00037. X'0001' is the length required for variable-length fields. The compare data is not converted when added to the system reply list. It is tagged with CCSID 00037. Message TST0010 has one replacement data field that is defined as *CCHAR with (*VARY 2) for its length. Message queue MYMSGQ has a CCSID of 00278.

Send message TST0010 in a job that has the system reply list turned on using the following Send Program Message command:

SNDPGMMSG MSGID(TST0010) MSGF(MYLIB/MYMSGF) MSGTYPE(*INQ) +
TOMSGQ(MYLIB/MYMSGQ) MSGDTA(X'00014A') CCSID(277)

The replacement data is converted from CCSID 00277 to CCSID 00037 and then compared with the compare data. The conversion results in replacement data X'00017B'. A match is found and the default reply is sent when this message is added to the message queue.

When the message is added to the message queue, the replacement data is converted from CCSID 00277 to CCSID 00278. The message queue CCSID does not matter when trying to match the compare data. The replacement data is converted to X'000163' when it is sent to the message queue and tagged 00278. X'63' is the code point for the number sign (#) in code page 00278.