Running web console commands
We must configure the environment as described in the following text, for the web console related Qshell commands to run correctly on IBM MQ for IBM i.
About this task
When the Qshell starts, it initializes internal tables for processing commands based on the CCSID of the job. For the web console related Qshell commands to run correctly on IBM i, we must configure the environment.
A locale is set by setting the LANG environment variable to the path name to a locale object. For example, to set the locale for US English, the LANG environment variable is set as follows:LANG=/QSYS.LIB/EN_US.LOCALE
In the Qshell, we can check the setting by issue command set to list all the environment variables. Usually it is LANG which may impact the locale for the runtime environment. It may also has LC_ALL.
To run Qshell commands correctly, the locale environment setting must be consistent with your job setting.
Procedure
Use CL command DSPJOB JOB(JobNumber/USERProfile/JobName)- Select option 2 to display the job definition attributes.
-
The following attributes should be consistent with the LANG or LC_ALL environment setting
- Language identifier
- Country or region identifier
- Coded character set identifier
For example, if
LANG=/QSYS.LIB/FR_FR.LOCALE
your job attributes should be:- Language ID . . . . . . . . . . FRA
- Country or region ID . . . . . . FR
- Coded character set ID . . . . 297
What to do next
For more information on national language support, see the IBM i Knowledge Center topic National language support (NLS) considerations.
Parent topic: Alternative ways of administering IBM MQ for IBM i