Thanks for your help. I've been trying to get SYMPUT to work but the language is a little confusing. Here's what finally worked:
/* GET MIN & MAX */
proc means data=gds1 noprint;
output out=fix1;
run;
/* PULL OUT MIN*/
data fix2a;
set fix1;
if _STAT_ = 'MIN' then bot0 = &var1;
if bot0 = . then delete;
CALL SYMPUT('bot1', PUT(bot0, 3.));
keep bot0;
run;
%put &bot1;
/* PULL OUT MAX*/
data fix2b;
set fix1;
if _STAT_ = 'MAX' then top0 = &var1;
if top0 = . then delete;
CALL SYMPUT('top1', PUT(top0, 3.));
keep top0;
run;
%put &top1;
/* I'm sure there are some redundancies in this but I was trying to break it down to each little step to figure out what was going wrong. */
... View more