Previous Page | Next Page

The CPORT Procedure

Example 4: Applying a Translation Table


Procedure features:

PROC CPORT statement option:

FILE=

TRANTAB statement option:

TYPE=


This example shows how to apply a customized translation table to the transport file before PROC CPORT exports it. For this example, assume that you have already created a customized translation table called TTABLE1.


Program

 Note about code
libname source 'SAS-data-library';
filename tranfile 'transport-file'
                   host-option(s)-for-file-characteristics;
 Note about code
proc cport catalog=source.formats file=tranfile;
   trantab name=ttable1 type=(format);
run;

SAS Log

NOTE: Proc CPORT begins to transport catalog SOURCE.FORMATS
NOTE: The catalog has 2 entries and its maximum logical record length is 104.
NOTE: Entry REVENUE.FORMAT has been transported.
NOTE: Entry DEPT.FORMATC has been transported.

Previous Page | Next Page | Top of Page