ASTORE Procedure

Using the Analytic Store

The most important task of the ASTORE procedure is to score an input table by using the information in the analytic store, which is stored in a data table.

In this example, the input data table is mylib.hmeq, the output data table is mylib.scoreout1, and the analytic store is in the data table mylib.savehmeq.

proc astore;
   score data=mylib.hmeq
         out=mylib.scoreout1
         rstore=mylib.savehmeq;
quit;
data scoreout1;
   set mylib.scoreout1;
run;
proc sort data=scoreout1;
   by id;
run;

The following statements print the observations, as shown in Figure 1.


proc print data=scoreout1(obs=5);
run;

Figure 1: Scoring with PROC ASTORE

Obsid_P_P_BAD1P_BAD0I_BAD_WARN_
111.000000.000001.000000 
221.000000.000001.000000 
331.000000.000001.000000 
44-0.846160.641030.358971M
551.000000.000001.000000 


Last updated: August 06, 2026