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 HPDMDB

/****************************************************************/
/*          S A S   S A M P L E   L I B R A R Y                 */
/*                                                              */
/*    NAME: hpdmde03                                            */
/*   TITLE: Getting Started Example for PROC HPDMDB             */
/* PRODUCT: HPA                                                 */
/*  SYSTEM:                                                     */
/*    KEYS:                                                     */
/*   PROCS: HPDMDB                                              */
/*    DATA:                                                     */
/*                                                              */
/* SUPPORT:                                                     */
/*     REF:                                                     */
/*    MISC: Example from the Getting Started section of the     */
/*          HPDMDB chapter of HPA                               */
/****************************************************************/
 option set=GRIDHOST       = "&GRIDHOST";
 option set=GRIDINSTALLLOC = "&GRIDINSTALLLOC";

 libname MyLib &LIBTYPE
         server  ="&GRIDDATASERVER"
         user    =&USER
         password=&PASSWORD
         database=&DATABASE;
 data MyLib.ex;
     input x1 x2 x3 x4 y$ w f y2;
     cards;
     1  2 1 1  m .90 1 0
     1  2 1 2  m .91 2 1
     1  2 1 3  x .89 1 4
     1  2 1 4  x .90 2 4
     1  3 1 1  m .91 1 1
     1  3 1 2  m .89 2 1
     2  3 1 3  x .90 1 5
     2  3 1 4  x .89 2 5
     3  1 2 1  z .90 1 2
     3  1 2 2  z .89 2 2
     3  1 2 3  y .90 1 7
     3  1 2 4  y .89 2 7
     3  4 2 1  z .90 1 3
     3  4 2 2  z .89 2 3
     4  4 2 3  y .90 1 6
     4  4 2 4  y .89 2 6
     ;
 run;
 /*MyLib is a libname for a distributed data source
   In this case, the computation is automatically done
   on the SAS Appliance.*/
 proc hpdmdb data=MyLib.ex print classout=cout varout=vout;
     class x1-x3;
     weight w;
     var x4 y2;
     freq f;
     performance details;
 run;