You can use an EGL wizard to create a bidirectional conversion
table (BCT).
To use the wizard, follow these steps:
- Click . The New window
opens.
- Click to expand Bidi Conversion Table Wizard,
then click Bidi Conversion Table.
- Click Next. The New Bidi Conversion Table
window opens.
- 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.
- 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.
- Click Next. The Client System settings
page opens.
- 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 |
| Java program
that uses text or print forms |
Arabic |
Cp1256 |
Cp1256 |
| Java program
that uses text or print forms |
Hebrew |
Cp1255 |
Cp1255 |
- 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.
- 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.
- Click Next. The Server System settings
page opens.
- Change the Server System properties and Server
Text attributes if necessary.
- Click Next. The Conversion Options page
opens.
- Change the Arabic Conversion Options and General
Conversion Options if necessary.
- Click Finish.