PLB_ANSI_OEM Keyword
PLBWIN, PLBCON or PLBCE
PLB_ANSI_OEM={ ON | OFF | INPUT | OUTPUT | CONSOLE }
This keyword causes OEM to ANSI translations to occur for input and output data. When the string value is 'on', both input and output operations are translated. When the string value is 'off', no translation occurs. 'off' is the default setting. If the string value is 'input', only input operations are translated. If the string value is 'output', only output operations are translated.
If PLB_SHIFTAZ=OFF is specified, normal KEYIN character shift inversion uses Windows routines to test each keyed character for lower or upper case. If Windows indicates that the character is lower case, the runtime uses a Windows function to convert the character to upper case. If Windows indicates that the character is upper case, the runtime uses a Windows function to convert the character to lower case. If Windows indicates that the character is neither lower case nor upper case, the character is not changed.
If PLB_SHIFTAZ=ON is specified, normal KEYIN character shift inversion is only performed for characters in the range of 'A' to 'Z' and 'a' to 'z'.
PLB_ANSI_OEM=CONSOLE setting eliminates OEM to ANSI translations for console input and output. This addresses situations where international users make use of the same PLBWIN.INI file to support both PLBWIN and PLBCON runtimes. Using this keyword, PLBWIN performs GUI input and output operations the same as when using PLB_ANSI_OEM=ON and performs KEYIN input translations. However, PLBWIN does not perform main window output translations for KEYIN and DISPLAY statements.
Note the following:
The old PLB_OEM keyword is not working as currently documented and the ANSI/OEM
conversions are not occurring as expected. Since we have not had any users reporting any problems for
the old PLB_OEM, we are not correcting the problems for the old PLB_OEM keyword to avoid possible unexpected
data changes for our current users.
The new PLB_ANSI_OEM corrects the conversion problems that existed for the old PLB_OEM keyword. Use
of the PLB_ANSI_OEM keyword by an end-user will insure an awareness by the end-user as to the corrected
data conversions. This hopefully can avoid unexpected data conversion problems by an end-user's application.
When using the Application server, the PLB_ANSI_OEM data conversions can only occur when a 9.2B or later of PLBSERVE and the clients (Plbclient, Plclicon, or Plbclinet) are used.
When the PLBSERVE Application Server is using the PLB_ANSI_OEM that requires ANSI/OEM conversions, the PLBCLIENT version MUST be a version of 9.2B or later. If an older PLBCLIENT tries to log onto this PLBSERVE, a new untrappable error U56 occurs. This new U56 error is required because all data conversions are performed by the logic in the PLBCLIENT clients.
See Also: PLBWIN Keywords, PLBCE Keywords, Compiler and Runtime Options
![]() |