BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have a question about the output from submitting the following code in EG. My EG environment has RTF output requested in Tools / Options / Results and also sets the RTF default style to 'minimal'.

ods rtf style=brick;
proc print data=sashelp.class;
run;
ods rtf style=journal;
proc print data=sashelp.class;
run;

I thought this would create one RTF output stored in the .egp file with the 'brick' style applied first and then the 'journal' style applied. Instead, I see two output RTF tabs. One tab shows the RTF output that is stored in the .egp file. It uses the RTF default style for both steps. The other tab shows RTF output stored in C: \SAS\Config01\Lev1\SASApp\sasrtf.rtf. It shows the styles requested in the ods rtf statement. I know that I can use the file= option on the RTF statement to store the output in a more appropriate external location, but I'd prefer to keep the RTF output in the .egp file.

Is there anyway to have control over the styles used in different parts of the EG internal RTF output? In non-EG environments, I used the ods rtf statement to control the styles for different types of reports. A style that adds value for one type of report might not be good for every report. Is something like this possible in EG with internally stored RTF outputs?

Also, it would be much better if there were only one RTF output tab (without needing to change the default setting for the Results RTF destination). Is there anyway to see only one RTF tab when producing an external RTF file?

Thanks for any help,
Paulette
1 REPLY 1
deleted_user
Not applicable
The answer appears to be:

ODS RTF(ID=EGRTF) style=brick;
proc print data=sashelp.class;
run;
ods rtf (ID=EGRTF) style=journal;
proc print data=sashelp.class;
run;

You get one RTF output tab with the correct formatting.

sas-innovate-2024.png

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.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 587 views
  • 0 likes
  • 1 in conversation