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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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