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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

New Learning Events in April

 

Join us for two new fee-based courses: Administrative Healthcare Data and SAS via Live Web Monday-Thursday, April 24-27 from 1:00 to 4:30 PM ET each day. And Administrative Healthcare Data and SAS: Hands-On Programming Workshop via Live Web on Friday, April 28 from 9:00 AM to 5:00 PM ET.

LEARN MORE

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