

National Language Support › Managing Multi-Language Environments › Using the Exit Program
Using the Exit Program
The following are suggestions for using the exit program:
- Before you use the exit program, you need to:
- Compile the physical files, the associated logical files, and the exit program.
- Save the compiled objects in a library in your library list.
- Add a record to the NL Support File for each supported national language.
- You need to generate the NL-enabled function before copying it in order to create the prompt messages.
- Each national language prompt message file needs to be stored in a separate library, since each message file has the name specified by the YPMTMSF model value.
- Before copying an NL-enabled function, ensure that the NL prompt message files are synchronized; in other words, ensure that the message ids in the base-language prompt message file also exist in each NL prompt message file.
- You do not need the Message Mapping File if all NL prompt message files are located on the same computer. In that case, you can comment out the call to the AAPRMM subroutine and the new messages will be created immediately using the BAADMS subroutine.
- If your national language message files are located on different computers or if you wish to defer the copying of the messages for performance reasons, use the following process:
- Comment out the call to the BAADMS subroutine so only the AAPRMM subroutine is called. AAPRMM adds records to the Message Mapping file (Y2MSMPP) but does not copy the prompt messages to the NL prompt message files.
- Write a program similar to the BAADMS subroutine that reads records from the Y2MSMPP file and calls the YCPYMSGR3I program for each record read.
- Add Y2MSMPP, Y2MSMPL0, and the new program object to the library list on the target computer.
- Run the new program on the target computer to copy the prompt messages to the correct prompt message files.
- Following are two suggestions for using the exit program with the YCPYMDLOBJ command. Experiment to determine the best method for your needs.
- Place the Y2NLSPP and Y2MSMPP files and the associated logical files in the library list for the source model.
- Create a prompt message file name for the target model using the YPMTMSF model value. This name can differ from that specified for the source model. Store the NL prompt message files for the target model in the same libraries as used for the source model.
For more information on the exit program and the two physical files, see comments in the exit program source.
Copyright © 2014 CA.
All rights reserved.
 
|
|