

libname example sasiola host="grid001.example.com" port=10010 tag='hps';
data example.pricedata;
set sashelp.pricedata;
where region=1 and product=1 and line=1;
run;
proc imstat data=example.pricedata;
forecast date / vars =sale 1
lead =4
info;
run;
forecast date / vars =sale
lead =4
info
indep=(price discount); 2
ods output forecast out=work.forecast2; 3
quit;
proc sgplot data=work.forecast2;
format date monyy7.; /* monyy5.; */
band x=date lower=lower upper=upper /
legendlabel="95% CLI" name="band";
series x=date y=predict / lineattrs=GraphPrediction name="predict";
series x=date y=actual / name="actual";
keylegend "actual" "predict" "band" / location=inside
position=bottomright;
run;
