Resources

SASŪ High-Performance Analytics Samples

The SAS High-Performance Analytics sample programs and install verification tests can be run only after you edit and submit this file. The file contains site-specific information about your environment so that the procedures can run successfully.

Getting Started Example for PROC HPSAMPLE

/****************************************************************/
/*          S A S   S A M P L E   L I B R A R Y                 */
/*                                                              */
/*    NAME: hpsame03.sas                                        */
/*   TITLE: Getting Started Example for PROC HPSAMPLE           */
/* PRODUCT: HPA                                                 */
/*  SYSTEM:                                                     */
/*    KEYS:                                                     */
/*   PROCS: HPSAMPLE                                            */
/*    DATA:                                                     */
/*                                                              */
/* SUPPORT:  Ye Liu                                             */
/*     REF:                                                     */
/*    MISC:Example-Running with Data on the SAS appliance       */
/****************************************************************/

 /*MyLib is a libname for a distributed data source
   In this case, the computation is automatically done
   on the SAS appliance.*/
 option set=GRIDHOST       = "&GRIDHOST";
 option set=GRIDINSTALLLOC = "&GRIDINSTALLLOC";
 libname MyLib &LIBTYPE
         server  ="&GRIDDATASERVER"
         user    =&USER
         password=&PASSWORD
         database=&DATABASE;

 proc datasets lib=Mylib nolist; delete out1;
 run;
 proc hpsample data=MyLib.hmeq out=MyLib.out1 samppct=10 seed=1;
     var loan value delinq derog;
     class job reason;
     target  job reason;
     ods output FreqTable=Freqtab;
 run;