BookmarkSubscribeRSS Feed
knveraraju91
Barite | Level 11

Dear,

 

I need to combine multiple rtf listings into single file. Is there any SAS tool or utility macro that i can use. Please suggest. Thank you

2 REPLIES 2
Reeza
Super User
VB script called from SAS is likely the quickest solution besides refactoring your code so that it outputs everything at once using GREPLAY or some other changes to your code.
ballardw
Super User

@knveraraju91 wrote:

Dear,

 

I need to combine multiple rtf listings into single file. Is there any SAS tool or utility macro that i can use. Please suggest. Thank you


It might help to show the code used to create the files.

 

Easiest might be to create the actual output inside one rtf "sandwich", place all the output inside a single ODS RTF file=  / ODS RTF CLOSE; pair of statements.

 

Second is if you create all of the output objects in the same session you might be able to use Proc Document to select the bits you want to send to single rtf output file.

 

SAS per se isn't going to combine existing rtf documents. Once the ODS RTF CLOSE is encountered that document is basically finished as far as SAS is concerned.

 

If said documents are created outside of SAS then use another program, such as a word processing program, to combine them.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 920 views
  • 1 like
  • 3 in conversation