Previous Page | Next Page

The TRANTAB Procedure

Syntax: TRANTAB Procedure


Tip: Supports RUN-group processing

PROC TRANTAB TABLE=table-name <NLS>;
CLEAR <ONE|TWO|BOTH>;
INVERSE;
LIST <ONE|TWO|BOTH>;
LOAD TABLE=table-name <NLS>;
REPLACE position value-1<...value-n>;
SAVE <TABLE=table-name> <ONE|TWO|BOTH>;
SWAP;

Task Statement
Set all positions in the translation table to zero CLEAR
Create an inverse of table 1 INVERSE
Display a translation table in hexadecimal representation LIST
Load a translation table into memory for editing LOAD
Replace the characters in a translation table with specified values REPLACE
Save the translation table in your SASUSER.PROFILE catalog SAVE
Exchange table 1 with table 2 SWAP

Note:   

Translation tables were introduced in SAS 6 to support the requirements of national languages. SAS 8.2 introduced the LOCALE= system option as an improvement on direct use of translation tables. SAS 9.2 supports the TRANTAB procedure for backward compatibility. However, using the LOCALE= system option is preferred in later SAS releases.

PROC TRANTAB is an interactive procedure. Once you submit a PROC TRANTAB statement, you can continue to enter and execute statements without repeating the PROC TRANTAB statement. To terminate the procedure, submit a QUIT statement or submit another DATA or PROC statement.  [cautionend]

Previous Page | Next Page | Top of Page