Compiling a Translation Table Using the ndmxlt Utility

Before you begin

You can create or modify a translation table tailored to your requirements with the ndmxlt utility program.

To invoke the ndmxlt utility, type the following command at the UNIX prompt:

$ ndmxlt -ssourcefile -ooutputfile [ -rradix] [ -ffiller] -mxlatefile

The parameters for the ndmxlt command are listed in the following table:

Parameter

Description

Values

 

 

 

-ssourcefile

The path and file name of the translation

Path and name of translation

 

table source file. If no value is specified,

table

 

input is read from STDIN.

 

 

 

 

-ooutputfile

The path and file name of the translation

Path and name of translation

 

table output file.

output file

 

 

 

-rradix

The radix or base of the source file input

x d o

 

data. All numeric values whether from

x—Hexadecimal. This is the

 

command line options or input data are

 

interpreted based on the radix setting.

default.

 

 

d—Decimal

 

 

o—Octal

 

 

The default is x.

 

 

 

-ffiller

A filler byte value. The entire table is

Any keyboard character,

 

initialized to this value before the input

number, or special character,

 

data is scanned and applied to the table.

plus control characters

 

 

entered using a preceding

 

 

slash.

 

 

For example, “\0” is null.

 

 

 

-m

The path and file name of a model

Path and file name of the

 

translation table. If specified, the model

model translation table

 

table is read in and then the input data is

 

 

scanned and applied to the table. This

 

 

capability permits creating a number of

 

 

different tables that are variations from a

 

 

single base table without having to specify

 

 

all 256 bytes of input data for each table.

 

 

 

 

Example—Creating a Translation Table

About this task

Perform the following steps to create a sample translation table that changes lowercase characters to uppercase characters:

Procedure

1.Make a copy of the sample translation table located at cd_dir/ndm/src/ def_send.sxlt.

2.Open the new translation table with a text editor.

44Sterling Connect:Direct for UNIX: User Guide

Page 50
Image 50
IBM 4J manual Compiling a Translation Table Using the ndmxlt Utility, Example-Creating a Translation Table