3.Add the following lines to the bottom of the table. It should look like the table in “Creating a Translation Table” on page 43when you have added this information.

#

# Change the lowercase characters to uppercase. offset=61

C1 C2 C3 C4 C5 C6 C7 C8 C9 D1 D2 D3 D4 D5 D6 D7

D8 D9 E2 E3 E4 E5 E6 E7 E8 E9

4.Copy the modified file to cd_dir/ndm/src and name it UpperCaseEBC.sxlt.

5.Compile the new translation table using the following syntax: ndmxlt -s../src/UpperCaseEBC.sxlt -oUpperCaseEBC.xlt

6.To use this translation table, add the following sysopts parameter to the copy statement:

copy from file=filename to file=filename

sysopts=":xlate.tbl=pathname/UpperCaseEBC.xlt:"

Example—Modifying a Model Translation Table

About this task

Perform the following steps to modify a model translation table. This method, when implemented, reads the model table and writes it to a new file. It then reads the input data and makes changes to the table created.

Procedure

1.Create a file called FourLinesUpperCase.sxlt and add the following lines to the file:

#

# Change the lowercase characters to uppercase. offset=61

C1 C2 C3 C4 C5 C6 C7 C8 C9 D1 D2 D3 D4 D5 D6 D7

D8 D9 E2 E3 E4 E5 E6 E7 E8 E9

2.Copy the modified file to cd_dir/ndm/src.

3.Type the following command to compile this file and create a translation table called fourLineUpperCase.xlt:

ndmxlt -s../src/FourLineUpperCase.sxlt -oFourLineUpperCase.xlt -mdef_send.xlt

4.To use this translation table, add the following sysopts parameter to the copy statement:

copy from file=filename to file=filename

sysopts=":xlate.tbl=pathname/FourLineUpperCase.xlt:"

Using Translation During File Transfer Operations

Translation is specified in the copy statement of a Sterling Connect:Direct Process. You can use the default translation table or create a new table.

Translation is specified in the copy statement of a Sterling Connect:Direct Process. You can use the default translation table or create a new table.

To use the default translation table, type the following copy statement:

copy from file=abc to file=xyz

sysopts=":xlate.tbl=yes:"

Chapter 3. Sterling Connect:Direct Utilities 45

Page 51
Image 51
IBM 4J manual Example-Modifying a Model Translation Table, Using Translation During File Transfer Operations