Hi everyone, I a trying to get the final code after all the macro variables are resolved. I am using Mfile and Mprint options of the sas to get the generated code and store it in my local system. I am using something like filename mprint '........\.mfile.sas'; options mfile mprint macrogen mlogic; %macro genmacro( vlist, table, filter); select &vlist from &table where &filter %mend; So the generated code (a .sas file named: mfile.sas) gets stored at the local machine and entire code is printed in one single line like one string. This can be consumed if the code is small, but if the code is very large then it's very hard for user to understand this and make sense out of it. Is there any way to get the indentation same as the SQL codes written inside the macro function? Please help me with this. Thanks in advance for you time and help.
... View more