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/
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.