CIMPORT Procedure: UNIX

Restores a transport file that was created by the CPORT procedure.
UNIX specifics: name and location of transport file
See: CIMPORT Procedure in Base SAS Procedures Guide

Syntax

PROC CIMPORT destination=libref | <libref.> member-name <option(s)> ;

Required Arguments

destination
identifies the files in the transport file as a single SAS data set, single SAS catalog, or multiple members of a SAS library.
libref | <libref.>member-name
specifies the name of the SAS data set, catalog, or library to be created from the transport file.
Note that this version is a simplified version of the CIMPORT procedure syntax. For the complete syntax and its explanation, see the CIMPORT procedure.

Details

Note: Starting in SAS 9.1, you can use the MIGRATE procedure to migrate a SAS library from a previous release. For more information, see Migrating 32-Bit SAS Files to 64-Bit in UNIX Environments, the MIGRATE procedure, and Cross-Release Compatibility at the Technical Support Web site.
The CIMPORT procedure imports a transport file that was created (exported) by the CPORT procedure. The transport file can contain a SAS data set, a SAS catalog, or an entire SAS library.
Typically, the INFILE= option is used to designate the source of the transport file. If this option is omitted, CIMPORT uses the default file Sascat.dat in the current directory as the transport file.
Note: CIMPORT works only with transport files created by the CPORT procedure. If the transport file was created using the XPORT engine with the COPY procedure, then another PROC COPY must be used to restore the transport file. For more information, see COPY Procedure in Base SAS Procedures Guide.

Example: Moving Data Sets

For this example, a SAS library that contains multiple SAS data sets was exported to a file (called transport-file) using the CPORT procedure on a foreign host. The transport file is then moved by a binary transfer to the receiving host.
The following code extracts all of the SAS data sets and catalogs stored within the transport file and restores them to their original state in the new library, called SAS-library.
libname newlib 'SAS-library';
filename tranfile 'transport-file';

proc cimport lib=newlib infile=tranfile;
run;