Chapter Contents

Previous

Next
The CPORT Procedure

Example 2: Exporting Individual Catalog Entries


Procedure features:
PROC CPORT statement options:
FILE=
SELECT statement

This example shows how to use PROC CPORT to export individual catalog entries, rather than all of the entries in a catalog.


Program
 Note about code
libname source 'SAS-data-library';
filename tranfile 'transport-file'
                   host-option(s)-for-file-characteristics;
 Note about code
proc cport catalog=source.finance file=tranfile;
select loan.scl;
run;


SAS Log

NOTE: Proc CPORT begins to transport catalog SOURCE.FINANCE
NOTE: The catalog has 5 entries and its maximum logical record length is 866.
NOTE: Entry LOAN.SCL has been transported.


Chapter Contents

Previous

Next

Top of Page

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