Codepage translations also take place when querying the installed character sets on a terminal. When the application is generated, the generator stores the codepage ID of the application in a constant data area made accessible to the runtime. This codepage ID is the codepage in use when the screen was modeled. It is the codepage of all literals, edit patterns, and character data in the application referenced by the runtime.
The codepage of the terminal is determined directly from the device or from the TP monitor (such as CICS). The terminal codepage always is the target codepage on outbound operations and the source codepage on inbound operations. The application codepage is the source codepage on outbound operations, and the target on inbound operations.
The application codepage is the codepage used to define the model. The screen manager assumes that the data is in the same codepage as the application.
It is important to note that the internal representation of a character and the display image of the string can be a different size. This is especially true when field editing inserts literal characters and a codepage translates the data for display.
|
Copyright © 2013 CA.
All rights reserved.
|
|