I am having an issue with macro function. The SAS code works just fine when not used in the macro function. Attached is the code for the first macro and the second macros is almost the same but with some more programming on a third variable the first macro does not have . When I run the first macro, it ran most of the time but sometime it does run and the log is just black line of codes. When I run the second macro (not attached here), it did not run for most of the time, and it works mostly only if I close sas program and rerun the second macro without running the first one. And a lot of time it runs without stopping, which drives me crazy. I would appreciate any help from anyone who had encountered the same problem like me. Thanks a lot. %macro Exam(Program);
.....................
%mend Exam;
%Exam(Program=XY); %Exam(Program=UW); %Exam(Program=ST); %Macro Exam2(Program, Class); ..................... %mend Exam2; %Exam2(Program=ABC, Class=D);
... View more