Hi, I'm trying to export a PDF document with several tables and a survival curve using proc lifetest
. The problem is that when I execute my code, everything is created correctly except for the survival plot, which appears at the start of the document and overlaps the table of contents. Does anybody know why this happens and how I can solve it? Thank you.
Please show your code including the ODS PDF to the ODS PDF CLOSE.
Here is the code simplified and the result I got
Since the photograph you shared of your code makes it look like you are using a lot of macro code it might help if you could turn on MPRINT so you can see what actual code gets run. Then try to recreate the issue with a much (much much) simpler program. Then you could share that simple program here. Or just open a ticket with SAS support and see if they can tell you why the graph is getting placed on the wrong page.
By any chance is that PREIMAGE reference pointing to location that the output of a previous run of Lifetest???
I see the macro variable &Dir used in the path for the PDF AND in the Preimage but with no actual name for the PNG file to use. So you may be attempting to use something that looks like X:\folder\subfolderpng (note the single dot would disappear when resolving the macro variable) when you meant X:\folder\subfolder\TitleImageName.png (which code should look more like &Dir.\TitleImageName.png )
With a possibly not well formed path\name to the Preimage location I am not sure what might happen.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.