Procedures under z/OS |
z/OS specifics: | specification of transport file |
See: | The CPORT Procedure in Base SAS Procedures Guide |
Details | |
See Also |
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 |
CPORT Procedure in Base SAS Procedures Guide
The MIGRATE procedure and cross-release compatibility at support.sas.com/migration
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.