CIMPORT Procedure

Example 3: Importing a Single Indexed SAS Data Set

Features:

PROC CIMPORT statement option: : INFILE=

Details

This example shows how to use PROC CIMPORT to import an indexed SAS data set from a transport file that was created by PROC CPORT from a single SAS data set.

Program

libname newdata 'SAS-data-library';
filename trans3 'transport-file'
                
host-option(s)-for-file-characteristics;
proc cimport data=newdata.times infile=trans3;
run;

Program Description

Specify the library name, filename, and operating environment options. The LIBNAME statement specifies a LIBNAME for the new SAS library. The FILENAME statement specifies the filename of the transport file that PROC CPORT created and enables you to specify any operating environment options for file characteristics.
libname newdata 'SAS-data-library';
filename trans3 'transport-file'
                
host-option(s)-for-file-characteristics;
Import the SAS data set. PROC CIMPORT imports the single SAS data set that you identify with the DATA= specification in the PROC CIMPORT statement. PROC CPORT exported the data set NEWDATA.TIMES in the transport file TRANS3.
proc cimport data=newdata.times infile=trans3;
run;

SAS Log


NOTE: Proc CIMPORT begins to create/update data set NEWDATA.TIMES
NOTE: The data set index x is defined.
NOTE: Data set contains 2 variables and 2 observations.
      Logical record length is 16