Previous PageNext Page

Appendix A - Internationalization

BLDTABLE

When To Use BLDTABLE

Modifying the ASCII-to-EBCDIC Table

Figure A-1. EBCDIC-to-ASCII Character Translation

1. You press a capital A on your keyboard. Capital A is 41 hexadecimal (base 16) in ASCII. The character must be translated into EBCDIC so that the host can understand it.

2. The emulator refers to position 41 on the ASCII-to-EBCDIC translation table. (See Table A-3 for an example of a typical translation table.) Position 41 contains the value C1 hexadecimal. C1 hexadecimal is sent to the host.

3. The host determines that the character it receives is to be echoed to the screen. It returns the value C1 back to the emulator software.

4. Advanced 3270/SNA captures the value C1, and looks at the C1 position of the EBCDIC-to-ASCII conversion chart. Position C1 contains the value 41 hexadecimal. The emulator puts the ASCII equivalent of 41 hexadecimal on the screen (capital A).

Table A-1. ASCII and EBCDIC Characters

Character Hexadecimal Value
(ASCII)
Hexadecimal Value
(EBCDIC)
Character Hexadecimal Value
(ASCII)
Hexadecimal Value
(EBCDIC)
A 41 C1 s 73 A2
B 42 C2 t 74 A3
C 43 C3 u 75 A4
D 44 C4 v 76 A5
E 45 C5 w 77 A6
F 46 C6 x 78 A7
G 47 C7 y 79 A8
H 48 C8 z 7A A9
I 49 C9 , 2C 6B
J 4A D1 = 3D 7E
K 4B D2 ( 28 4D
L 4C D3 ) 29 5D
M 4D D4 - 2D 60
N 4E D5 . 2E 4B
O 4F D6 / 2F 61
P 50 D7 ' 27 7D
Q 51 D8 < 3C 4C
R 52 D9 > 3E 6E
S 53 E2 $ 24 5B
T 54 E3 % 25 4A
U 55 E4 + 2B 6C
V 56 E5 : 3A 7A
W 57 E6 ; 3B 5E
X 58 E7 * 2A 5C
Y 59 E8 " 22 7F
Z 5A E9 _ 5F 6D
a 61 81 @ 40 7C
b 62 82 ¿ BF 5F
c 63 83 & 26 50
d 64 84 # 23 7B
e 65 85 ! 21 5A
f 66 86 ? 3F 6F
g 67 87 | B3 4F
h 68 88 0 30 F0
i 69 89 1 31 F1
j 6A 91 2 32 F2
k 6B 92 3 33 F3
l 6C 93 4 34 F4
m 6D 94 5 35 F5
n 6E 95 6 36 F6
o 6F 96 7 37 F7
p 70 97 8 38 F8
q 71 98 9 39 F9
r 72 99      

Table A-2. ASCII and 3274 Buffer Code Characters Table

Character Hexadecimal Value
(ASCII)
Hexadecimal Value
(Buffer Code)
Character Hexadecimal Value
(ASCII)
Hexadecimal Value
(Buffer Code)
A 41 A0 s 73 92
B 42 A1 t 74 93
C 43 A2 u 75 94
D 44 A3 v 76 95
E 45 A4 w 77 96
F 46 A5 x 78 97
G 47 A6 y 79 98
H 48 A7 z 7A 99
I 49 A8 , 2C 33
J 4A A9 = 3D 11
K 4B AA ( 28 0D
L 4C AB ) 29 0C
M 4D AC - 2D 31
N 4E AD . 2E 32
O 4F AE / 2F 14
P 50 AF ' 27 12
Q 51 B0 < 3C 09
R 52 B1 > 3E 08
S 53 B2 $ 24 1A
T 54 B3 % 25 2E
U 55 B4 + 2B 35
V 56 B5 : 3A 34
W 57 B6 ; 3B BE
X 58 B7 * 2A BF
Y 59 B8 " 22 13
Z 5A B9 _ 5F 2F
a 61 80 @ 40 2D
b 62 81 | 7C 17
c 63 82 & 26 30
d 64 83 # 23 2C
e 65 84 ! 21 19
f 66 85 ? 3F 18
g 67 86 | B3 16
h 68 87 0 30 20
i 69 88 1 31 21
j 6A 89 2 32 22
k 6B 8A 3 33 23
l 6C 8B 4 34 24
m 6D 8C 5 35 25
n 6E 8D 6 36 26
o 6F 8E 7 37 27
p 70 8F 8 38 28
q 71 90 9 39 29
r 72 91      

Running BLDTABLE

1. Insert the Advanced 3270/SNA International Diskette into the A drive of your PC. Copy the contents of the diskette to your hard disk.

2. To display a list of the available character sets you can use as BLDTABLE input files, type this command at the DOS prompt:

DIR *.TXT

3. Select one of these files as an input file for BLDTABLE. Type this command at the DOS prompt:

BLDTABLE infile.txt outfile.tbl

where infile.txt is the input file containing the conversion tables and outfile.tbl is a file name you specify. If this file does not exist when you run BLDTABLE, the program creates it. If a file with the specified name already exists, BLDTABLE overwrites it.

4. If you are running LLAPI applications and you require a Buffer Code-to-ASCII translation table, type this command at the DOS prompt:

BLDTABLE infile.txt outfile.scn

See the Chapter 7 on Application Programming Interfaces for more information on Buffer Code-to-ASCII translation tables.

5. Run ACONFIG. Select EDIT Translation Table Names from the Advanced 3270 Configuration menu. The screen in Figure A-2 appears.

Figure A-2. Translation Tables Screen

6. Enter the names of your BLDTABLE ouput files in the appropriate fields. Press <F10> when you have finished.

7. Select Save Configuration from the Advanced 3270 Configuration menu, and exit to DOS.

Table A-3. US English BLDTABLE Input File

EBCDIC    
00 XX XX XX XX 09 XX XX XX XX XX XX 0C XX XX XX ; 00-0F
XX 11 12 13 XX 0A XX XX XX 19 XX XX 1C 1D 1E 1F ; 10-1F
XX XX XX XX XX XX XX 1B XX XX XX XX XX XX XX XX ; 20-2F
XX XX XX XX XX XX XX XX XX XX XX XX 14 XX XX 1A ; 30-3F
20 XX XX XX XX XX XX XX XX XX 9B 2E 3C 28 2B 7C ; 40-4F
26 XX XX XX XX XX XX XX XX XX 21 24 2A 29 3B AA ; 50-5F
2D 2F XX XX XX XX XX XX XX XX 7C 2C 25 5F 3E 3F ; 60-6F
XX XX XX XX XX XX XX XX XX 60 3A 23 40 27 3D 22 ; 70-7F
XX 61 62 63 64 65 66 67 68 69 XX XX XX XX XX XX ; 80-8F
XX 6A 6B 6C 6D 6E 6F 70 71 72 XX XX XX XX XX XX ; 90-9F
XX 7E 73 74 75 76 77 78 79 7A XX XX XX XX XX XX ; A0-AF
XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX ; B0 BF
7B 41 42 43 44 45 46 47 48 49 XX XX XX XX XX XX ; C0-CF
7D 4A 4B 4C 4D 4E 4F 50 51 52 XX XX XX XX XX XX ; D0-DF
5C XX 53 54 55 56 57 58 59 5A XX XX XX XX XX XX ; E0-EF
30 31 32 33 34 35 36 37 38 39 XX XX XX XX XX XX ; F0-FF
ASCII    
00 XX XX XX XX XX XX XX XX 05 15 XX 0C XX XX XX ; 00-0F
XX 11 12 13 3C XX XX XX XX 19 3F 27 1C 1D 1E XX ; 10-1F
40 5A 7F 7B 5B 6C 50 7D 4D 5D 5C 4E 6B 60 4B 61 ; 20-2F
F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 7A 5E 4C 7E 6E 6F ; 30-3F
7C C1 C2 C3 C4 C5 C6 C7 C8 C9 D1 D2 D3 D4 D5 D6 ; 40-4F
D7 D8 D9 E2 E3 E4 E5 E6 E7 E8 E9 XX E0 XX XX 6D ; 50-5F
79 81 82 83 84 85 86 87 88 89 91 92 93 94 95 96 ; 60-6F
97 98 99 A2 A3 A4 A5 A6 A7 A8 A9 C0 6A D0 A1 XX ; 70-7F
XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX ; 80-8F
XX XX XX XX XX XX XX XX XX XX XX 4A XX XX XX XX ; 90-9F
XX XX XX XX XX XX XX XX XX XX 5F XX XX XX XX XX ; A0-AF
XX XX XX 4F XX XX XX XX XX XX XX XX XX XX XX XX ; B0-BF
XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX ; C0-CF
XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX ; D0-DF
XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX ; E0-EF
XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX ; F0-FF

How to Edit a BLDTABLE Input File

Input File Format

7B 41 42 43 44 45 46 47 48 49 XX XX XX XX XX XX ; C0-CF

7C C1 C2 C3 C4 C5 C6 C7 C8 C9 D1 D2 D3 D4 D5 D6 ; 40-4F

The keyword ASCII must precede the ASCII-to-EBCDIC table, and the keyword EBCDIC must precede the EBCDIC-to-ASCII table.
The values are expressed in either one-digit or two-digit hexadecimal values. For example, F and 0F are the same value. Use XX or xx instead of a hexadecimal value to denote a null value.
You can include blank lines anywhere in the file.
Precede comments with a semicolon. BLDTABLE ignores all characters to the right of a semicolon in processing.

Input File Editing Procedure

1. Select a .TXT file that most closely represents the language or character translations you need.

2. Use a text editor to edit the .TXT file.

3. Starting with the ASCII values at the bottom of the file, locate the hexadecimal character you need to translate. Use the right-hand column as a reference. For example, here is the first line in Table A-3 and is for the ASCII values 00 through 0F:

00 XX XX XX XX XX XX XX XX 05 15 XX 0C XX XX XX ; 00-0F

The notation to the right of the semicolon means that the first position in the column is numbered 00, and the last position in the column is numbered 0F. The line below shows a line with each position numbered.

00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F ;position

4. After finding the corresponding hexadecimal value, locate that same value in the EBCDIC table above it.

5. The corresponding value in the EBCDIC table is what the emulator displays. Edit this table. If the character value in the EBCDIC table is XX, nothing displays.

Example

1. Edit the file using any standard text editor. In location 24 in the US ASCII table (See Table A-3) you will find the value 5B.

40 5A 7F 7B 5B 6C 50 7D 4D 5D 5C 4E 6B 60 4B 61 ; 20-2F

2. Find location 5B in the EBCDIC table.

26 XX XX XX XX XX XX XX XX XX 21 24 2A 29 3B AA ; 50-5F

Change it to 9C. The line should now look like this:

26 XX XX XX XX XX XX XX XX XX 21 9C 2A 29 3B AA ; 50-5F

3. Save the file with any name and a .TBL extension.

4. Run BLDTABLE with the modified .TXT file as input. Use the following syntax:

BLDTABLE infile.txt outfile.tbl

5. Run ACONFIG and specify the new .TBL file name as your translation table.

Program Messages

Duplicate keywords in file.

Error writing to output file. Check your disk; it may be full.

File cannot be opened. You may want to check your file name.

File too short. Table(s) missing.

Illegal digit found in file.

More than 2 consecutive hex digits found. 2 is the limit.

Syntax of keyword is incorrect. Expecting 'ASCII' or 'EBCDIC'.

Table incomplete. File too short.

Tables written to file name

The row is too short. 16 values are required on a line.

Running GENX

1. Check your working directory to see if it contains the following files:

GENX.EXE
SNA_SND.LAN
SNA_RCV.LAN
SNA_SND.MAP
SNA_RCV.MAP

If any one of these files is missing, copy it from the distribution diskette into your working directory.

Note: When changing language character sets, you must start with the original SNA_SND program that contains the default US English character set before selecting a new set. Use a copy of SNA_SND.EXE and SNA_RCV.EXE from the distribution diskette each time you run GENX.

2. Enter GENX at the DOS prompt:

GENX

GENX first displays the program copyright notice and the first line of the dialogue shown below in Figure A-3.

3. Respond to the prompts as shown. Each time you press <ENTER>, the next prompt appears. You can enter new file names if you choose, but Banyans recommend choosing the defaults.

The prompts show the default names in square brackets.

Figure A-3. Sample GENX Dialogue

[Nul.exe] This is a place holder. You can answer only SNA_SND, SNA_RCV, or HLLAPI to this prompt.

[SNA_SND.MAP] The SNA_SND symbol file. The symbol file tells the file transfer software where to find the customization information in PC memory.

[SNA_SND.LAN] The SNA_SND language file customization menus and values.

[SNA_SND.EXE] The file transfer program.

Creating Customized GENX Files

Figure A-4. Sample GENX Language Selection Menu

1. Enter the number corresponding to the character set you want.

2. Enter 98, to confirm the language you select.

3. Enter 99 to exit GENX.

 

Previous PageTop Of PageNext Page