BookmarkSubscribeRSS Feed
HitmonTran
Pyrite | Level 9

Hello,

 

I am trying to output the highlighted results into a dataset for these 2 proc steps.  thank you!

 

 

code:

proc ttest data=mrg;
class interval_name;
var bmi;
run;

 

want output dataset (highlight):

HitmonTran_1-1695013190629.png

 


 code:
proc npar1way data=mrg wilcoxon;
class interval_name;
var aged;
run;

 

want output dataset (highlight):

HitmonTran_0-1695013118333.png

 

1 REPLY 1
yabwon
Meteorite | Level 14

Read about:

1) ODS TRACE statement: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p1fpt3uuow90o3n155hs7bp1mo7f.htm - to list names of output objects

2) ODS SELECT statement: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p1b72ff70v3obrn16aanp1r9q2bu.htm - to select only those which you are interested in

3) ODS OUTPUT statement: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p0oxrbinw6fjuwn1x23qam6dntyd.htm - to grab data from the selected objects into a dataset

 

Read in the order: 1, 2, 3 because even  if you go directly to 3 you will have to get back to 1 and 2 after all. 🙂

 

Bart

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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