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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -