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
| Obs | id | _P_ | P_BAD1 | P_BAD0 | I_BAD | _WARN_ |
|---|---|---|---|---|---|---|
| 1 | 1 | 1.00000 | 0.00000 | 1.00000 | 0 | |
| 2 | 2 | 1.00000 | 0.00000 | 1.00000 | 0 | |
| 3 | 3 | 1.00000 | 0.00000 | 1.00000 | 0 | |
| 4 | 4 | -0.84616 | 0.64103 | 0.35897 | 1 | M |
| 5 | 5 | 1.00000 | 0.00000 | 1.00000 | 0 |
Last updated: August 06, 2026