Hi,
Does anyone know if it is possible to reopen an ODS RTF destination after it has been closed to add further contents?
For example:
ods rtf.tagsets file="C:\Stats\SAS_output.rtf" ;
proc freq data=ds1 ; tables var1*var2; run ;
ods rtf.tagsets close ;
ods rtf.tagsets file="C:\Stats\SAS_output.rtf" ;
proc freq data=ds2 ; tables var1*var2; run ;
ods rtf.tagsets close ;
I am aware in the example above that the two Proc Freqs can be placed inside the same ODS. What I would like to know is if it is possible to close the rtf.tagsets destination and then reopen it to add further contents that do not overwrite the current contents displayed in the file.
Many thanks
I have never used it myself but guessing what you're trying to do ODS DOCUMENT might be what you're looking for.
https://support.sas.com/resources/papers/proceedings12/273-2012.pdf
ODS destinations in general are limited to being created from scratch and in one process. You can imagine the complexity of interpreting an existing ODS file and adding to it hence the restriction in SAS's ODS.
I have never used it myself but guessing what you're trying to do ODS DOCUMENT might be what you're looking for.
https://support.sas.com/resources/papers/proceedings12/273-2012.pdf
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.
Explore Now →SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.