CIMPORT Procedure

Example 2: Importing Individual Catalog Entries

Features:

PROC CIMPORT statement option: : INFILE=

SELECT statement

Details

This example shows how to use PROC CIMPORT to import the individual catalog entries LOAN.PMENU and LOAN.SCL from the transport file TRANS2, which was created from a single SAS catalog.

Program

libname newlib 'SAS-data-library';
filename trans2 'transport-file'
                
host-option(s)-for-file-characteristics;
proc cimport catalog=newlib.finance infile=trans2;
   select loan.pmenu loan.scl;
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 newlib 'SAS-data-library';
filename trans2 'transport-file'
                
host-option(s)-for-file-characteristics;
Import the specified catalog entries to the new SAS catalog. PROC CIMPORT imports the individual catalog entries from the TRANS2 transport file and stores them in a new SAS catalog called NEWLIB.FINANCE. The SELECT statement selects only the two specified entries from the transport file to be imported into the new catalog.
proc cimport catalog=newlib.finance infile=trans2;
   select loan.pmenu loan.scl;
run;

SAS Log


NOTE: Proc CIMPORT begins to create/update catalog NEWLIB.FINANCE
NOTE: Entry LOAN.PMENU has been imported.
NOTE: Entry LOAN.SCL has been imported.
NOTE: Total number of entries processed in catalog NEWLIB.FINANCE: 2