Valid in: | CPORT Procedure, UPLOAD procedure, DOWNLOAD procedure |
Restriction: | You can specify only one translation table per TRANTAB statement. To specify additional translation tables, use additional TRANTAB statements. |
Interaction: | The TRANTAB statement specifies a customized translation table (for example, to map an EBCDIC character to an ASCII character) to apply to the character set in the SAS file that is being exported or transferred. The TRANTAB= system option specifies a translation table to use for the SAS session, including file transfers. |
OPT=DISP | applies the translation table only to the specified catalog entries, which produce window displays. |
OPT=SRC | applies the translation table only to the specified catalog entries that are of the type SOURCE. |
OPT=(DISP SRC) | applies the translation table only to the specified catalog entries that either produce window displays or are of type SOURCE. |
http://support.sas.com/techsup/technote/ts639.pdf
Assign
library references. </userSuppliedValue>The LIBNAME and FILENAME
statements assign a libref for the source library and a fileref for
the transport file, respectively.
libname source '\\sashq\root\pub\pubdoc\doc\901\authoring\proc\miscsrc\sasfiles\cport'; filename tranfile 'trans3'; proc trantab table=ascii; save table=ttable1;
libname source 'SAS data-library'; filename tranfile 'transport-file' host-option(s)-for-file-characteristics;
Apply the translation specifics.</userSuppliedValue>
The TRANTAB statement applies the translation that you specify with
the customized translation table TTABLE1. TYPE= limits the translation
to FORMAT entries.
proc cport catalog=source.formats file=tranfile; trantab name=ttable1 type=(format); run;