BookmarkSubscribeRSS Feed
tarheel13
Rhodochrosite | Level 12

Does anyone have code for concatenating RTF output? 

http://pharma-sas.com/a-sas-macro-to-combine-portrait-and-landscape-rtf-files-into-one-single-file/

 

I have tried this with just 2 files as a test but they were figures. It didn't quite get what I wanted. The figures were at the center of the page at first but when I ran this code, the figure on the first page was left aligned instead of center aligned. However, the figure on the second page of the report was where I wanted it to be.

2 REPLIES 2
Reeza
Super User
Usually, I'd redesign my output process instead to avoid that issue - either by re-ordering code or controlling the destination output with the ID option so that each content is written to the correct file. Otherwise, you're stuck using VBS or getting into the raw RTF files which are just text really.
tarheel13
Rhodochrosite | Level 12

They're in the right files. The issue is the first figure moved to the left and I want it in the center of the page.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 537 views
  • 0 likes
  • 2 in conversation