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

 

ods trace on/listing;

ods Homtests =  pvalue;
ods quartiles = quart;
ods ProductLimitEstimates=ple;

proc lifetest data=aashr.test outsurv=data atrisk alpha=0.05;
time Days*Status(0);
strata Treatment;
run;

ods trace off;


Dear Comuunity,

 

I been trying to output a data set in the work library containing the quartiles, Log rank tests, and the Product limit estimates respectivley using the above referenced code, but I keep getting an error saying that Statement is out of order is not used properly. The error from log is found below!

 

Thank you! 

 

Screenshot (12).png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Statement should be of the form:

 

ODS OUTPUT <tableName> = <datasetName>;

You're missing the OUTPUT portion of the statement. 

 


@ajkalale wrote:

 

ods trace on/listing;

ods Homtests =  pvalue;
ods quartiles = quart;
ods ProductLimitEstimates=ple;

proc lifetest data=aashr.test outsurv=data atrisk alpha=0.05;
time Days*Status(0);
strata Treatment;
run;

ods trace off;


Dear Comuunity,

 

I been trying to output a data set in the work library containing the quartiles, Log rank tests, and the Product limit estimates respectivley using the above referenced code, but I keep getting an error saying that Statement is out of order is not used properly. The error from log is found below!

 

Thank you! 

 

Screenshot (12).png

 


 

View solution in original post

1 REPLY 1
Reeza
Super User

Statement should be of the form:

 

ODS OUTPUT <tableName> = <datasetName>;

You're missing the OUTPUT portion of the statement. 

 


@ajkalale wrote:

 

ods trace on/listing;

ods Homtests =  pvalue;
ods quartiles = quart;
ods ProductLimitEstimates=ple;

proc lifetest data=aashr.test outsurv=data atrisk alpha=0.05;
time Days*Status(0);
strata Treatment;
run;

ods trace off;


Dear Comuunity,

 

I been trying to output a data set in the work library containing the quartiles, Log rank tests, and the Product limit estimates respectivley using the above referenced code, but I keep getting an error saying that Statement is out of order is not used properly. The error from log is found below!

 

Thank you! 

 

Screenshot (12).png

 


 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Health and Life Sciences Learning

 

Need courses to help you with SAS Life Sciences Analytics Framework, SAS Health Cohort Builder, or other topics? Check out the Health and Life Sciences learning path for all of the offerings.

LEARN MORE

Discussion stats
  • 1 reply
  • 1494 views
  • 0 likes
  • 2 in conversation