CPORT Procedure: z/OS

Writes SAS data sets and catalogs into a transport file.
z/OS specifics: Specification of transport file
See: CPORT Procedure in Base SAS Procedures Guide

Details

The DISK option is the default for the CPORT procedure. Therefore, PROC CPORT defaults to writing to a file on disk instead of on a tape. If you want to write to a file on tape, specify the TAPE option or assign the fileref or ddname of SASCAT to a tape.
You are not required to define the logical name SASCAT to your tape, and you are not required to specify the full DCB attributes. However, the BLKSIZE= value must be an integral multiple of 80; a value of 8000 is recommended.
Here is an example of exporting all the SAS data sets and catalogs in a SAS library to a transport file on disk. Note that the FILENAME statement specifies BLKSIZE=8000.
libname oldlib 'SAS-data-library';
filename tranfile 'transport-file-name'
   blksize=8000 disp=(new,catlg);
proc cport library=oldlib file=tranfile;
run;
PROC CPORT writes a transport file to the physical file that is referenced by TRANFILE. The file contains all the data sets and catalogs in the SAS library OLDLIB.
Note: Starting in SAS 9.1, you can use the MIGRATE procedure to migrate a SAS library from a previous release to a later release. For more information, see the Migration focus area at support.sas.com.

See Also

Moving and Accessing SAS Files
Procedures
CPORT Procedure in Base SAS Procedures Guide