BookmarkSubscribeRSS Feed
sophielr
Fluorite | Level 6

Hi Guy,

 

Thanks to any help. I produced multiple patient profiles already, but they are separate file. my boss want them in one pdf file right now. How could I solve this problem by SAS?

4 REPLIES 4
ballardw
Super User

If the reports were done is SAS then sandwich the code that created them in ONE ODS sandwich:

ods pdf file="yourpathandfilenamegohere.pdf" <other ods options>;/* or RTF*/

<All of the code that created the reports goes here>

ods pdf close; /*or rtf*/

None of the code in the <all of the code> bit above can contain any ods PDF Close or it will close the document before completion. However if there are ODS RTF that would be okay though that likely will overwrite your existing rtf files.

sophielr
Fluorite | Level 6

@ballardw  Thank you, but my PDF files are external. ods pdf  could not  import pdf file.

ballardw
Super User

If SAS didn't create the report files then why ask here? Then your question belongs on a PDF forum, not SAS.

 

If SAS did create the files then rerun the code with a different ODS statement to combine the reports.

 

SASKiwi
PROC Star

ODS PDF is for creating PDFs not importing them. You could easily do this manually in MS Word or Adobe Acrobat. For a few PDFs a manual solution is a lot more efficient than programmed approach.

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

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
  • 4 replies
  • 1566 views
  • 0 likes
  • 3 in conversation