Writes SAS data sets and catalogs into a transport file.
OpenVMS specifics: |
name and location of transport file
|
See: |
CPORT Procedure in
Base SAS Procedures Guide
|
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. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
-
libref
-
specifies the name and location of the file
to be transported.
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. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
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. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
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.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.