Hello,
I'm working on a project in which I have some quite repetitive steps, so I decided to create a macro that takes as parameter a dataset and a string.
When I call the macro for the first time, everything works fine. It's when I call it again right after with a different dataset and string that it goes wrong: the string changes in the results, but the macro's printed data doesnt change and keeps the results from the previous macro call.
I'm afraid I cant post my macro for confidential issues, but I think my problem is quite explicit. Are there any steps I'm missing when calling/ recalling the macro? I'm quite new to SAS so all my macro consists of is:
% macro data_management(table, string)
#repetitive code pasted here#
%mend
I even tried deleting the datasets and the end of the macro once the printing had been done, but it still didnt change anything...
Regards
... View more