Features: |
PROC
COPY statement options:
|
|
Other features: |
XPORT engine
|
This example illustrates how to create a transport file on a host and
read it on another host.
In order for this example to work correctly, the transport file must
have certain characteristics, as described in the SAS documentation for your
operating environment. In addition, the transport file must be moved to the
receiving operating system in binary format.
|
LIBNAME source 'SAS-library-on-sending-host';
LIBNAME xptout xport 'filename-on-sending-host'; |
|
proc copy in=source out=xptout memtype=data;
select bonus budget salary;
run; |
|
1 LIBNAME source 'SAS-library-on-sending-host ';
NOTE: Libref SOURCE was successfully assigned as follows:
Engine: V9
Physical Name: SAS-library-on-sending-host
2 LIBNAME xptout xport 'filename-on-sending-host';
NOTE: Libref XPTOUT was successfully assigned as follows:
Engine: XPORT
Physical Name: filename-on-sending-host
3 proc copy in=source out=xptout memtype=data;
4 select bonus budget salary;
5 run;
NOTE: Copying SOURCE.BONUS to XPTOUT.BONUS (memtype=DATA).
NOTE: The data set XPTOUT.BONUS has 1 observations and 3 variables.
NOTE: Copying SOURCE.BUDGET to XPTOUT.BUDGET (memtype=DATA).
NOTE: The data set XPTOUT.BUDGET has 1 observations and 3 variables.
NOTE: Copying SOURCE.SALARY to XPTOUT.SALARY (memtype=DATA).
NOTE: The data set XPTOUT.SALARY has 1 observations and 3 variables.
| |
|
LIBNAME insource xport 'filename-on-receiving-host'; |
|
proc copy in=insource out=work;
run; |
|
1 LIBNAME insource xport 'filename-on-receiving-host';
NOTE: Libref INSOURCE was successfully assigned as follows:
Engine: XPORT
Physical Name: filename-on-receiving-host
2 proc copy in=insource out=work;
3 run;
NOTE: Input library INSOURCE is sequential.
NOTE: Copying INSOURCE.BUDGET to WORK.BUDGET (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines.
System Option for BUFSIZE was used.
NOTE: The data set WORK.BUDGET has 1 observations and 3 variables.
NOTE: Copying INSOURCE.BONUS to WORK.BONUS (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines.
System Option for BUFSIZE was used.
NOTE: The data set WORK.BONUS has 1 observations and 3 variables.
NOTE: Copying INSOURCE.SALARY to WORK.SALARY (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines.
System Option for BUFSIZE was used.
NOTE: The data set WORK.SALARY has 1 observations and 3 variables.
| |
|
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.