BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
L_L
Calcite | Level 5 L_L
Calcite | Level 5

Dear all

I'm using PROC LIFETEST to create a Kaplan Meier curve.

Example of code:

nocenter nodate number  linesize=95 topmargin="2 cm" bottommargin="2 cm"  papersize=A4;

rtf file= 'c:\Survival.rtf' ;

PROC LIFETEST data=ds_input plots=(s) noprint;

TIME time_obs*event(0);

STRATA var1/test=(logrank wilcoxon);

SYMBOL1 v=none color=red;

SYMBOL2 v=none color=blue;

AXIS1 label=(angle=90 'Survival function');

RUN;

In the code log  there's the following warning message:

WARNING: The specified/default value of VSIZE of 5.0000 inches and VORIGIN of 0.0000 inches exceeds the maximum for  the PNG printer. VSIZE is changed to 3.4167 inches.

I see the Kaplan Meier curve in the output but not in the rtf file.

Could anyone help me?

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
L_L
Calcite | Level 5 L_L
Calcite | Level 5

Thanks to the SAS support I've found the solution. The code works adding:

goptions device=ZPNG

Bye

View solution in original post

4 REPLIES 4
Reeza
Super User

Did your first two lines get cut off?

You need

options nocenter nodate number ....; Missing the options keyword

and

ODS RTF File= '...' ; Mising the ODS keyword?

Also, since you're doing ODS you need ODS GRAPHICS ON; to be above your code somewhere as well.

L_L
Calcite | Level 5 L_L
Calcite | Level 5

..Yes, sorry I didn't copy option nocenter... and ods rtf..

I think the code I run it's correct (ODS Graphics on is not required since the NOPRINT option is specified), but I can't understand the WARNING message..

L_L
Calcite | Level 5 L_L
Calcite | Level 5

Thanks to the SAS support I've found the solution. The code works adding:

goptions device=ZPNG

Bye

SASER
Fluorite | Level 6

Hello there,
I get the same warning: "WARNING: The specified/default value of VSIZE of 8.0000 inches and VORIGIN of 0.0000 inches exceeds themaximum for  the PNG printer. VSIZE is changed to 6.638 inches.". But I use GPLOT to do create the graph in HTML file.

and I use SAS 9.4. The ZPNG is disabled here. Can you please suggest me any other solution. It will be great if you could please explain why this warning comes up. Thank you in advance

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

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