![]() Chapter Contents |
![]() Previous |
![]() Next |
SAS/CONNECT User's Guide |
Purpose |
Program |
For example, suppose that you want to perform some processing on a remote host, download the resulting SAS data set, create a permanent data set on the local host, and print a report on the local host.
The following example illustrates how to put all of these tasks into a single program.
/*************************************/ /* prepare to sign on */ /*************************************/ [1] options comamid=netbios remote=netpc; [2] libname lhost 'c:\sales\reg1'; /*************************************/ /* sign on and download data set */ /*************************************/ [3] signon; [4] rsubmit; [5] libname rhost 'd:\dept12'; proc sort data=rhost.master out=rhost.sales; where gross > 5000; by lastname dept; run; [6] proc download data=rhost.sales out=lhost.sales; run; [7] endrsubmit; [8] /*************************************/ /* print data set in local session */ /*************************************/ proc print data=lhost.sales; run;
![]() | |
![]() | |
![]() Note: This connection is not using a script file. | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() |
Running the Program |
You have several options for running this program:
Note: When statements are submitted to the remote host, several statements may be grouped into a single packet of data sent to the remote host. Therefore, a line that is
remote-submitted is not necessarily processed immediately after you enter
it on the local host.
sas file-containing-program
Note: Refer to Starting and Stopping SAS/CONNECT Software for more information about automatic logon
scripts.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.