The SAS Output Delivery System and reporting techniques

How to embed my SAS code to my report?

Reply
Contributor
Posts: 40

How to embed my SAS code to my report?

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

PROC Star
Posts: 311

Re: How to embed my SAS code to my report?

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. 

Super User
Super User
Posts: 7,845

Re: How to embed my SAS code to my report?

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.

Super User
Super User
Posts: 7,845

Re: How to embed my SAS code to my report?

Ask a Question
Discussion stats
  • 3 replies
  • 280 views
  • 5 likes
  • 3 in conversation