CPORT Procedure

Example 3: Exporting a Single SAS Data Set

Features:

PROC CPORT statement option:: FILE=

Details

This example shows how to use PROC CPORT to export a single SAS data set.

Program

libname source 'SAS-data-library';
filename tranfile 'transport-file'
                  
host-option(s)-for-file-characteristics;
proc cport data=source.times file=tranfile;
run;

Program Description

Assign library references. The LIBNAME and FILENAME statements assign a libref for the source library and a fileref for the transport file, respectively.
libname source 'SAS-data-library';
filename tranfile 'transport-file'
                  
host-option(s)-for-file-characteristics;
Specify the type of file that you are exporting. The DATA= specification in the PROC CPORT statement tells the procedure that you are exporting a SAS data set rather than a library or a catalog.
proc cport data=source.times file=tranfile;
run;

SAS Log


NOTE: Proc CPORT begins to transport data set SOURCE.TIMES
NOTE: The data set contains 2 variables and 2 observations.
      Logical record length is 16.
NOTE: Transporting data set index information.