BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello,

I have one huge Enterprise Guide (version 4.1) project where each "branch" ends with a graph or table. These are all PDF outputs.

I then want to automatically send an email to x people. However, I would like to concatenate all PDFs into ONE PDF that I could email, instead of emailing one PDF for each branch.

I'm a fairly novice user, so any guidence would be helpful. If it is possible to do in the actual GUI of EG, that would be of great help to. The Document builder seems to work only for HTML files...
2 REPLIES 2
Cynthia_sas
Diamond | Level 26
Hi:
If you do this in a code node:
[pre]
ods pdf file='all_in_one.pdf';
** proc or analysis 1; run;

** proc or analysis 2; run;

** proc or analysis 3; run;
ods pdf close;
[/pre]

You will get the results of all 3 procedures in one PDF file. I suspect that EG is isolating each task within a separate ODS PDF "sandwich" and so, if you had 3 procedures or tasks, you would get 3 separate PDF files.

If you do not use the above technique (putting all your procedure code within one ODS PDF "sandwich" in a code node, then you would need to use an Adobe product (Adobe Acrobat, PageMaker, FrameMaker, etc) or some third-party PDF builder in order to concatenate multiple PDF files together into one file.

The good news is that EG will let you export the code from your project and then you can grab that code and insert it into one ODS PDF sandwich,instead of the way that EG is doing it now.

cynthia
deleted_user
Not applicable
I agree with Cynthia's solution of sandwiching the procs in one "ods pdf" code note. Also, for my particular situation I still needed a third-party PDF builder to combine various PDFs using my BY variable. I used something called PDF Split-Merge with had both GUI and command line support so I can process it in a batch file. It was also very inexpensive.
http://www.verypdf.com/pdfpg/index.html

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1082 views
  • 0 likes
  • 2 in conversation