Chapter Contents |
Previous |
Next |
CPORT |
CMS specifics; | specification of transport file |
Syntax | |
Details | |
See Also |
Syntax |
PROC CPORT <options>; |
Details |
The CPORT procedure writes SAS data sets and catalogs into a transport format. Coupled with the CIMPORT procedure, PROC CPORT enables you to move catalogs and data sets from one operating environment to another.
The transport format is written to the location specified by the FILE= option. The value of the FILE= option can be a fileref defined in a FILENAME statement or a physical file specification enclosed in single quotation marks. If you do not specify the FILE= option, the reserved fileref SASCAT is used, if you have assigned it, or else the file SASCAT DATA is written to your first R/W accessed filemode.
The following example creates a transport file SASCAT DATA:
filename sascat clear; libname myfile 'a'; proc cport library=myfile; run;
Any of the following examples create the transport file PORT FILE M:
filename sascat 'port file m'; libname myfile 'a'; proc cport library=myfile; run;
filename portout 'port file m'; libname myfile 'a'; proc cport librarty=myfile file=portout; run;
libname myfile 'a'; proc cport library=myfile file='port file m'; run;
To write the transport file to tape, assign a fileref to a tape. It is recommended that you use specify BLKSIZE=8000, as follows:
filename sascat tape 'tap1' blksize=8000; libname myfile 'a'; proc cport library=myfile; run;
If you specify a physical tape name on the FILE= option then you must also specify the TAPE option. This method is not recommended because the default blocksize of 80 is used, as follows:
libname myfile 'a'; proc cport library=myfile file='tap1' tape; run;
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.