EBCDIC user table inclusion example
This section describes how to create a table to convert from '' (yen sign; ASCII : 0x5c) to '\' (backslash; EBCDIC : 0xE0) based on EBCDIC Katakana character conversion during the conversion from ASCII to EBCDIC, and how to set the table as user table 1, as an example of table creation.
(1) Copying the template file
Copy the EBCDIC code set conversion template file, which is used for EBCDIC Katakana character conversion from ASCII to EBCDIC, as a text file for editing the EBCDIC user table, using any file name.
% cd HULFT installation directory % cp $HULPATH/ucf/as2ebkn.txt user1.txt
(2) Editing text files
Edit the copied text file for editing the EBCDIC user table by using an editor, such as vi.
Content of the text file copied for editing
| 0 1 2 3 4 5 6 7 8 9 A B C D E F
----------------------------------------------------
0 | 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
1 | 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F
2 | 40 5A 7F 7B E0 6C 50 7D 4D 5D 5C 4E 6B 60 4B 61
3 | F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 7A 5E 4C 7E 6E 6F
4 | 7C C1 C2 C3 C4 C5 C6 C7 C8 C9 D1 D2 D3 D4 D5 D6
5 | D7 D8 D9 E2 E3 E4 E5 E6 E7 E8 E9 4A E0 40 5F 6D
6 | 79 C1 C2 C3 C4 C5 C6 C7 C8 C9 D1 D2 D3 D4 D5 D6
7 | D7 D8 D9 E2 E3 E4 E5 E6 E7 E8 E9 C0 4F D0 A1 40
8 | 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40
9 | 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40
A | 40 41 42 43 44 45 46 47 48 49 51 52 53 54 55 56
B | 58 81 82 83 84 85 86 87 88 89 8A 8C 8D 8E 8F 90
C | 91 92 93 94 95 96 97 98 99 9A 9D 9E 9F A2 A3 A4
D | A5 A6 A7 A8 A9 AA AC AD AE AF BA BB BC BD BE BF
E | 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40
F | 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40
#COMMENT=ASCII -> EBCDIC user table1
-
The 19th line, preceded by a number sign (#), is a comment. Comments can be specified up to 60 bytes.
-
The 'E0' in bold has been changed.
(3) Creating conversion files
Create the conversion file for User table 1 by using the EBCDIC User Table Expand command.
% utlucextd -i user1.txt -r user1
(4) Confirming conversion files
Confirm the contents of the conversion file for User table 1 by using the EBCDIC User Table Expand command.
% utlucextd -r user1 -o