Previous Page | Next Page

Procedures under OpenVMS

CPORT Procedure: OpenVMS



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

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.  [cautionend]

libref

specifies the name and location of the file to be transported.


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.  [cautionend]

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]


Example


Example 1: Exporting Data Sets and Catalogs to Disk

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

Previous Page | Next Page | Top of Page