Procedure features: |
PROC CIMPORT
statement option:
|
|
This example shows how to use PROC CIMPORT to read from disk a transport
file, named TRANFILE, that PROC CPORT created from a SAS library in another
operating environment. The transport file was moved to the new operating
environment by means of communications software or magnetic medium. PROC CIMPORT
imports the transport file to a SAS library, called NEWLIB, in the new operating
environment.
|
libname newlib 'SAS-data-library';
filename tranfile 'transport-file'
host-option(s)-for-file-characteristics; |
|
proc cimport library=newlib infile=tranfile;
run; |
NOTE: Proc CIMPORT begins to create/update catalog NEWLIB.FINANCE
NOTE: Entry LOAN.FRAME has been imported.
NOTE: Entry LOAN.HELP has been imported.
NOTE: Entry LOAN.KEYS has been imported.
NOTE: Entry LOAN.PMENU has been imported.
NOTE: Entry LOAN.SCL has been imported.
NOTE: Total number of entries processed in catalog NEWLIB.FINANCE: 5
NOTE: Proc CIMPORT begins to create/update catalog NEWLIB.FORMATS
NOTE: Entry REVENUE.FORMAT has been imported.
NOTE: Entry DEPT.FORMATC has been imported.
NOTE: Total number of entries processed in catalog NEWLIB.FORMATS: 2
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.