Chapter Contents

Previous

Next
CPORT

CPORT



Writes SAS data sets and catalogs into a special format in a transport file

OS/390 specifics: specification of transport file


Details
See Also


Details

The DISK option is the default for the CPORT procedure; therefore, 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 data 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 data library OLDLIB.

See Also


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.