Procedures under OpenVMS |
OpenVMS specifics: | name and location of transport file |
See: | CPORT Procedure in Base SAS Procedures Guide |
Syntax | |
Details | |
Example | |
Exporting Data Sets and Catalogs to Disk | |
See Also |
Syntax |
PROC CPORT source-type=libref<.member-name> <option-list>; |
Note: This is a simplified version of the CPORT procedure syntax. For the complete syntax and its explanation, see the CPORT procedure in Base SAS Procedures Guide.
Details |
Note: You can use the MIGRATE procedure to convert your SAS files. For more information, see Compatibility of Existing SAS Files with SAS 9.2.
The CPORT procedure creates a transport file to be later restored (imported) by the CIMPORT procedure. The transport file can contain a SAS data set, SAS catalog, or an entire SAS library.
If you do not use the FILE= option and have not defined the reserved fileref SASCAT, a file named SASCAT.DAT is created in your default directory.
Note: The default record attribute for SAS transport files has been changed to NONE. This is equivalent to specifying CC=NONE in the LIBNAME or the FILENAME statement when creating the transport file.
Example |
The following is an example of using PROC CPORT to export all the data sets and catalogs from a library on disk:
libname newlib 'SAS-library'; filename tranfile 'transport-file'; proc cport library=newlib file=tranfile; run;
PROC CPORT writes the file TRANFILE to disk. This file contains the data sets and catalogs in the SAS library NEWLIB in transport format.
See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.