Examples Using Compute Services |
Purpose |
This long-running program calculates summary statistics from the variables in a large SAS data set and downloads the summary statistics to your client session. The program also defines the macro variable REMSTATUS to store the status of the server task and uses the fileref REMLOG to store the log lines.
Program |
rsubmit wait=no macvar=remstatus log=remlog; libname remtdata 'external-file-name'; proc summary data=remtdata.clinic; class diagnose; var age income visits; output out=sumstat n= mean= mage mincome mvisits; run; proc download data=sumstat out=summary; run; endrsubmit;
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.