Previous Page | Next Page

Examples Using Compute Services

Example 1: Using MP CONNECT for a Long-Running Remote Task


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;

Previous Page | Next Page | Top of Page