On several occasions, I've needed to run a procedure in SAS, then save output variables for access by another program (MATLAB). This is easy, for example:
proc genmod order=data;
class X Y Z;
output out= gmout1 prob = PRED;
model count=X Y Z /dist=poi pred;
run; *mutual independence;
proc export data = work.gmout1
outfile = "...\genmodout1.txt"
dbms = csv replace;
run;
The output out= gmout1
in the 3rd line saves whatever variables proc genmod exports into a library table called gmout1.
My current need is to be able to access some of the data stored in gmout1 within SAS itself. Should be easy, but my searches have not turned up anything useful.
genmod
fits and estimates a generalize linear model. The result output to the screen includes model coefficients and fit statistics. I need to use some of these variables for further calculations. I'm usinggmout1
then as a place to put them from genmod, so something else can get to them. – Dr. Andrew