Friday, January 20, 2012

What is a SAS CPORT file? How do I use it?

The CIMPORT procedure imports a CPORT transport file that was created (exported) by the CPORT procedure in SAS. PROC CIMPORT will extract SAS datasets and catalogs from the .STC file. CPORT files also include SAS libraries that can be used to apply value labels.

SAS 9.2 and later versions operating in a Windows environment support the opening of .STC files from either Windows Explorer or My Computer. Earlier versions of either SAS or another OS will require the submission of edited versions of the following statements to the SAS processor. Libraries other than the WORK library can be specified if they are already defined.

proc cport
   file = '<drive:><\PATH>FILENAME.stc'
   library = WORK
   disk
;
run ;

No comments:

Post a Comment