So I have two macros that I need to combine, I've been eyeing this thing for a while and can't seem to get it to work. It seems to be a simple step but I can't seem to get it recognize the new macro I create "Do_Freq_Req". The goal is to have the new macro "Do_Freq_Reg" execute as often as the number of variable in the analysis, and to have it branch into the Do_Freq and Do_Req macros that already exists. Below is the code of the two individual Do_Freq and Do_Reg macros. COMBINE THE NEXT TWO MACROS INTO ONE MACRO %Macro Do_Freq(Input, Title); Proc Freq Data= Alldel; Tables &Input; Title "Variable Summarized: &Title"; Run; %Mend Do_Freq; %Do_Freq(Hyperten, Hypertension during pregnancy?); %Do_Freq(Diabetes, Prepregnancy diabetes?); %Do_Freq(Gestatio, Gestational diabetes?); %Do_Freq(Drug_Abu, Drugs use during pregnancy?); %Do_Freq(Smoke, Smoker?); %Do_Freq(HIV, HIV?); %Do_Freq(Parity, Parity); %MACRO DO_REG(Predict); PROC REG DATA=ALLDEL; &PREDICT: MODEL FETAL_WE=&PREDICT; RUN; QUIT; %MEND DO_REG; %DO_Reg(IndRace); %Do_Reg(IndSmoke); %Do_Reg(DeltaBmi) %Do_Reg(Weeks_ge) %Do_Reg(Age); Any help is appreciated. Thanks
... View more