Procedures under UNIX |
UNIX specifics: | name and location of transport file |
See: | CIMPORT Procedure in Base SAS Procedures Guide |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
PROC CIMPORT destination=libref | <libref.>member-name <option(s)>; |
Note: This version is a simplified version of the CIMPORT procedure syntax. For the complete syntax and its explanation, see the CIMPORT procedure in the Base SAS Procedures Guide.
identifies the files in the transport file as a single SAS data set, single SAS catalog, or multiple members of a SAS library.
specifies the name of the SAS data set, catalog, or library to be created from the transport file.
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, and Migration at support.sas.com/migration.
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 about PROC COPY, see the Base SAS Procedures Guide.
Example |
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;
See Also |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.