A job attribute, job default CCSID (DFTCCSID), is created for jobs
with a CCSID of 65535. The DFTCCSID value is used by a system code when a
CCSID other than 65535 is needed.
The DFTCCSID attribute can only be retrieved or displayed. The
value of this attribute is determined as follows:
- If the job CCSID is not 65535, the DFTCCSID equals the job CCSID.
- If the job CCSID is 65535, the DFTCCSID value is based on an appropriate
value derived from the job language identifier (LANGID).
When the job is running, the system determines the default
CCSID for a job using the following logic (you can find the corresponding
CCSID for LANGID in default CCSID table):
- If the job CCSID is set to a value, it uses that value.
- If the job CCSID is set to *USRPRF, then the system checks the
user profile for the value.
- If the user profile is set to a value, it uses that value.
- If the user profile is set to *SYSVAL, the system checks the system
value.
- If the system value for QCCSID is set to a value, it uses that
value.
- If the system value is set to 65535, the system checks the job's
language ID.
- If the job's LANGID is set to a value, the QTQ_DEFAULT_CCSID environment
variable is checked for that LANGID value. If the QTQ_DEFAULT_CCSID environment
variable contains a value for that LANGID, the CCSID specified in the QTQ_DEFAULT_CCSID
environment variable is used. If the QTQ_DEFAULT_CCSID environment variable
does not contain a value for the LANGID, the system converts that LANGID to
a CCSID.
- If the job's LANGID is set to *USRPRF, the system checks the user
profile's language ID.
- If the user profile's LANGID is set to a value, the QTQ_DEFAULT_CCSID
environment variable is checked for that LANGID value. If the QTQ_DEFAULT_CCSID
environment variable contains a value for that LANGID, the CCSID specified
in the QTQ_DEFAULT_CCSID environment variable is used. If the QTQ_DEFAULT_CCSID
environment variable does not contain a value for the LANGID, the system converts
that LANGID to a CCSID.
- If the user profile's LANGID is set to *SYSVAL, the QTQ_DEFAULT_CCSID
environment variable is checked for that LANGID value. If the QTQ_DEFAULT_CCSID
environment variable contains a value for that LANGID, the CCSID specified
in the QTQ_DEFAULT_CCSID environment variable is used. If the QTQ_DEFAULT_CCSID
environment variable does not contain a value for the LANGID, the system converts
that LANGID to a CCSID.