![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS/CONNECT User's Guide |
PROC
UPLOAD<data-set-option(s)>
|
| CONSTRAINT=NO |
| DATA=local-SAS-data-set |
| EXTENDSN=NO |
| INDEX=NO |
| OUT=OUT=remote-SAS-data-set |
| TRANIN= |
| TRANNET= |
| TRANOUT= |
| V6TRANSPORT |
| ENTRYTYPE=etype |
| EXTENDSN=NO |
| INCAT=local-SAS-catalog |
| OUTCAT=remote-SAS-catalog |
| CONSTRAINT=NO |
| EXTENDSN=NO |
| GEN=YES |
| INDEX=NO |
| INLIB=local-SAS-library |
| MEMTYPE=(mtype-list) |
| OUTLIB=remote-SAS-library |
| V6TRANSPORT |
| BINARY |
| INFILE=local-file-identifier |
| OUTFILE=remote-file-identifier |
| PROC UPLOAD Statement Options |
Note:
This option is available in Releases 6.09E, 6.11
TS040, and later.
proc upload inlib=accts outlib=accts after='30dec95'd status=no;
Warning: AFTER= option not supported by earlier
release; option will be ignored.
The BINARY option prevents record delimiters from being inserted at each remote host record. In addition, if the remote host uses a different method of data representation, the BINARY option prevents any data translation such as conversion from ASCII to EBCDIC. See The BINARY Option for more information.
If you use the DATA= option, you must either use the OUT= option or omit all other options.
| INCAT=libref._ALL_ |
The following examples illustrate some valid pairs of these options:
| INLIB= OUTLIB= |
| INLIB= OUT= |
| IN= OUT= |
| IN= OUTDD= |
| INDD= OUTDD= |
| INDD= OUTLIB= |
filename locref 'c:\';
rsubmit;
filename fref '/local/programs';
proc upload infile=locref('*.sas')
outfile=fref;
run;
endrsubmit;If you use the INFILE= option, you must also use the OUTFILE= option.
proc upload data=a out=a; run;
proc upload out=mydata; run;
proc upload inlib=a out=rmtlib; run;
See Default Naming Conventions for Uploaded Data Sets for information about the effect of omitting the OUT= option.
| OUTCAT=libref._ALL_ |
If you use the OUTCAT= option, you must also use the INCAT= option.
If you use the OUTFILE= option, you must also use the INFILE= option.
| Default Naming Conventions for Uploaded Data Sets |
For example, suppose you submit the following statement:
libname orders local-host-SAS-data-library;
/*******************************************/ /* The libref ORDERS is defined on both */ /* hosts. */ /*******************************************/ libname orders remote-host-SAS-data-library; proc upload data=orders.qtr1; run;
/*******************************************/ /* The libref ORDERS is defined only on */ /* the local host. */ /*******************************************/ proc upload data=orders.qtr2; run;
For example, suppose you submit the following statements:
libname orders local-host-SAS-data-library; options user=orders;
/*******************************************/ /* The libref ORDERS is defined on both */ /* hosts. */ /*******************************************/ libname orders remote-host-SAS-data-library; libname remote remote-host-SAS-data-library; /************************************/ /* This option has no effect in */ /* this case. */ /************************************/ options user=remote; proc upload data=qtr1; run;
For example, suppose you submit these statements:
libname orders local-host-SAS-data-library; options user=orders;
/*******************************************/ /* The libref ORDERS is defined only on */ /* the remote host. */ /*******************************************/ libname remote remote-host-SAS-data-library; options user=remote; proc upload data=qtr1; run;
proc upload; run;the last data set that was created on the local host during the SAS session is uploaded to the remote host.
| Data Set Options and Attributes for the UPLOAD Statement |
Note:
The index for an uploaded
SAS data set is re-created on the remote host; not copied from the local host.
To prevent the re-creation of the index, you can specify the INDEX=NO option
in the PROC UPLOAD statement, as described in PROC UPLOAD Statement Options. ![[cautend]](../common/images/cautend.gif)
proc upload data=study(keep=age score1 score2) index=no; run;
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.