The following macro was supplied by SAS to one of my coworkers, it counts
the number of observations in a data set and puts the value into num6. I
need to call this thing about 42 times and store the value obtained in
uniquely named variables to use in subsequent calculations. I've been
able to use let to make the data set name change but all my attempts at
changing 'num6' to make it unique by the use of & and quotes have failed
miserably. Any suggestions?
I am inexperienced at this, in fact this is my first report that is
intended for production use.
%macro numobs6(sas_data_set_name);
%global num6;
data _NULL_;
If 0 then set &sas_data_set_name nobs=count;
call symput('num6',left(put(count,8.)));
stop;
run;
%mend numobs6;
%let sas_data_set_name = AP_FRIT_RESOURCE_PROBLEM_;
%numobs6 (&sas_data_set_name);
gdh
Gregory D. Howe
FRIT
Service Delivery Division
TSM/Application and Office Support Team
|
|
0
|
|
|
|
Reply
|
Gregory.Howe (1)
|
10/3/2003 2:46:33 PM |
|