SAS Procedures under Windows |
Windows specifics: | Name and location of transport file |
See: | CIMPORT Procedure in Base SAS Procedures Guide |
Syntax | |
Details | |
See Also |
Syntax |
PROC CIMPORT destination=libref| <libref.>member-name <option(s)>; |
Note: This is a simplified version of the CIMPORT procedure syntax. For the complete syntax and its explanation, see the CIMPORT procedure in Base SAS Procedures Guide.
identifies the file(s) 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 |
The CIMPORT procedure imports a transport file that was created (exported) by the CPORT procedure.
Coupled with the CPORT procedure, the CIMPORT procedure enables you to move catalogs and data sets from one operating environment to another.
Note: PROC CIMPORT processes a file generated by PROC CPORT, not a transport file generated by the XPORT engine.
Note: You can use the MIGRATE procedure, beginning with SAS 9.1, to migrate a SAS library from a previous release.
When you use the CIMPORT procedure under Windows, remember the following:
The value of the INFILE= option can be a fileref defined in a FILENAME statement, a quoted Windows pathname, or an environment variable.
If you omit the INFILE= option and have not defined the reserved fileref SASCAT, SAS tries to read from a file named SASCAT.DAT in your working directory. If no file by that name exists, the following error message is issued and the procedure terminates, assuming that C:\SAS has been defined as the working directory:
ERROR: Physical file does not exist, C:\SAS\SASCAT.DAT
If you have not transferred the file created by PROC CPORT in binary format, PROC CIMPORT cannot read the file, and you receive the following message:
ERROR: Given transport file is bad.
See Also |
The MIGRATE procedure and cross-release compatibility at http://support/sas.com/migration and the Base SAS Procedures Guide.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.