sas macro - Inserting a table name into a string with SAS -


I am writing a macro in SAS, which exports a file. I want the name of the file, it is the same as the name of the table as the abstract. So if I run:

 % to_excel (my_table);   

I have to save the file to "Q: /my_table.xlsx". What I have done so far:

 % macro to_excel (TB); Proc Export Data = & amp; TB outfile = ????????? Changing dbms = xlsx; Run; % improvement;    

You are almost there to try it.

 % macro to_excel (tb); Proc Export Data = & amp; TB outfile = "Q: / & amp; TB..Clicks" change dbms = xlsx; Run; % improvement; % To_excel (My_table);    

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

objective c - how Set autolayout for multiple dynamic buttons and labells in iOS? -