You must ensure that secondary languages can be used after they
have been installed on i5/OS™.
You must follow these steps:
- Change the user's system part of the library list to add the secondary
language library to the beginning of the list. You can accomplish this in
one of the following ways:
- Use the Change System Library List (CHGSYSLIBL) command
to add the national language library you want to the top of the library list.
The command can be in an initial program specified in the user profile so
the user does not have to enter the command at every signon.
The authority
included with the CHGSYSLIBL command does not allow all users to run the command.
To enable a user to run the CHGSYSLIBL command without granting the user rights
to the command, you can write a CL program containing the command. The program
is owned by the security officer and adopts the security officer's authority
when created. Any user with authority to run the program can use it to change
the system part of the library list in the user's job.
- Use a separate subsystem for a secondary language. To do this:
- Create a subsystem description to be used for secondary language users
(QGPL/DANISH, for example).
- Specify the secondary language library for SYSLIBLE (QSYS2926, for example).
- Specify the sign-on display file from the secondary language library for
SGNDSPF (QSYS2926/QDSIGNON, for example).
- Remove the appropriate display devices (Remove Work Station Entry (RMVWSE)
command) from the interactive subsystem and add them (Add Work Station Entry
(ADDWSE) command) to the secondary language subsystem. When you use these
commands, no one can be signed on to the devices that you are removing.
- If you want to use separate job queues (JOBQ) and output queues (OUTQ)
for a secondary language, you can create these in the secondary language library
(for example, QSYS2926). Attach the job queue to the secondary language subsystem
(for example, QGPL/DANISH).
- You might have licensed programs that have secondary
language libraries and that are not on the i5/OS secondary language tape. You should
add those secondary language libraries to the library list before the primary
language product libraries. Use the Change System Library List (CHGSYSLIBL)
command to add the secondary language libraries to the library list if the
product libraries are in the system part of the library list.
- Specify the keyboard ID for the secondary language in the device description
for the display station. This can be accomplished through the use of the Change
Device Description (Display) (CHGDEVDSP) command. You need to vary off your
device, use the CHGDEVDSP command, and then use the Vary Configuration (VRYCFG)
command to vary the device back on.
- Change the date format to reflect the date format of your language. The
date format, date separator, and time separator can only be changed using
the CHGJOB command for secondary language users. If you use the CHGSYSVAL
command to change these values, all primary language users and all secondary
language users have this information changed. The following table illustrates
this and shows the ways the date and other NLS-related job attributes should
be specified for secondary language users:
|
CHGJOB |
CRTJOBD |
CHGJOBD |
CRTUSRPRF |
CHGUSRPRF |
Date |
X |
X |
X |
|
|
Date Format |
X |
|
|
|
|
Date Separator |
X |
|
|
|
|
Time Separator |
X |
|
|
|
|
Character Set Identifier |
X |
|
|
X |
X |
Language Identifier |
X |
|
|
X |
X |
Sort Sequence |
X |
|
|
X |
X |
Country or Region Identifier |
X |
|
|
X |
X |
- Change the CCSID value to reflect the CCSID of the secondary language
that you want to use. You can set the CCSID value for all jobs to run under
your user profile by using the Change User Profile (CHGUSRPRF) command. This
change takes effect for any jobs that enter the system using your profile
after you have made the change.
You can set the CCSID value
for a batch job to be run using the CCSID parameter on the Submit Job (SBMJOB)
command. You can change the CCSID of a job that is running by using the Change
Job (CHGJOB) command.
- Ensure that your data, in objects other than database files and message
files, prints correctly. To do this, you might want to direct all of your
printed output to a print queue that contains printer output for only the
character identifier of your language.
- Use the Create Output Queue (CRTOUTQ) command to create a printer queue.
- Use the OUTQ parameter of the Change Job (CHGJOB) command to change your
job output queue.
CHGJOB OUTQ(output_queue)
Note: You
can use the Change User Profile (CHGUSRPR)F command instead to make a more
permanent change to the OUTQ. Then, each time you sign on to the system, the
correct OUTQ is used.
If the printer supports changing the code page, you can use the *JOBCCSID
value in the printer file.
- Change other cultural- and language-dependent values to the secondary
language you want to use if you do not want to use the system values. Use
the Change Job (CHGJOB) command to change the cultural- and language-dependent
values.