Hi,
Does any one know how to embed my SAS code to an ODS output (such as RTF file)? I know there are ways in other software language like R for doing so.
Right now I have to copy and paste the SAS program (the codes that generate the report) to the report after I opened the report in a different software.
Thanks in advance,
ZChen
I don't know an easy option, if your code is generated using a macro, you could use the mprint and mfile options to output your macro generated syntax to a temp file, then reread it in and print it to whatever you're output is.
If you are using SAS/Studio interface you can use the Program Summary menu item to see a combined program/log/output in your browser. You could then save that as a report.
Also check out the Jupyter notebook option.
https://blogs.sas.com/content/sasdummy/2016/04/24/how-to-run-sas-programs-in-jupyter-notebook/
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.