Creating a bidirectional conversion table

You can use an EGL wizard to create a bidirectional conversion table (BCT).
To use the wizard, follow these steps:
  1. Click File > New > Other. The New window opens.
  2. Click to expand Bidi Conversion Table Wizard, then click Bidi Conversion Table.
  3. Click Next. The New Bidi Conversion Table window opens.
  4. Under Enter or select the parent folder, enter the name folder where you want to create the table. The directory must be in the classpath for the application that uses it.
  5. For File name, enter a name for the Bidi Conversion table. The name of a bidi conversion table used with EGL programs must have four characters or less, and must have the .bct extension.
  6. Click Next. The Client System settings page opens.
  7. In the Code page list, select the encoding for the type of application you are generating. You can specify any valid code page for client and server, including UTF-8. The following table shows some examples:
    Table 1. Encoding for bidi conversion tables
    Use Language Client encoding for bidi conversion table Server encoding for bidi conversion table
    COBOL generation Arabic Cp1256 Cp864
    COBOL generation Hebrew Cp1255 Cp1255
    Java™ program that calls a remote COBOL program or EGL service Arabic Cp1256 Cp420
    Java program that calls a remote COBOL program or EGL service Hebrew Cp1255 Cp424
  8. Change any Client System properties necessary. Note that for Java generation, the conversion table client code page must be the same as the java.lang.System.file.encoding set for the Java Virtual Machine when the program runs.
  9. Change any or Client Text attributes necessary. For the Ordering Scheme of server attributes, the following considerations apply:
    • For Java generation, the ordering scheme should be set to Implicit, while encoding should be the same as your local system encoding.
    • For COBOL generation, you should usually set the ordering scheme to Visual and set the server code page to Cp420 for Arabic or Cp424 for Hebrew. The client format will depend on the client that you use.
  10. Click Next. The Server System settings page opens.
  11. Change the Server System properties and Server Text attributes if necessary.
  12. Click Next. The Conversion Options page opens.
  13. Change the Arabic Conversion Options and General Conversion Options if necessary.
  14. Click Finish.

Feedback