SAS Procedures

Help using Base SAS procedures
BookmarkSubscribeRSS Feed
lredon
Calcite | Level 5

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.

 

 

 

4 REPLIES 4
ballardw
Super User

Please show your code including the ODS PDF to the ODS PDF CLOSE.

 

lredon
Calcite | Level 5

Here is the code simplified and the result I got

 

lredon_0-1719576053969.png

 

lredon_1-1719576066740.png

 

Tom
Super User Tom
Super User

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.

ballardw
Super User

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.

 

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

What is Bayesian Analysis?

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 821 views
  • 0 likes
  • 3 in conversation