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-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!

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