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

Hi ,

I was trying to use STORE the CORR results in SAS studio , is this possible . I am getting error. 

   proc corr data=statdata.fitness rank  nosimple
 58         plots(only)=matrix (nvar = all histogram) ;
 59         
 60         var RunTimeAgeWeightRun_Pulse Oxygen_ConsumptionRest_PulseMaximum_PulsePerformance;
 61         
 62         store out = test1;
            _____
            180
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 63         run;
 64         ods graphics off;
 65         
 66         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;

 

 
1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

Your error is because the STORE statement is not a valid statement in PROC CORR.

 

Yes, the STORE statement works for procedures that support it:

proc logistic data=sashelp.class;
model sex = height weight;
store out=LogiModel;
run;

 

View solution in original post

2 REPLIES 2
Rick_SAS
SAS Super FREQ

Your error is because the STORE statement is not a valid statement in PROC CORR.

 

Yes, the STORE statement works for procedures that support it:

proc logistic data=sashelp.class;
model sex = height weight;
store out=LogiModel;
run;

 

DHINESHSHANKAR0
Fluorite | Level 6

Thank you Rick for confirming . I further went thro the documentation and found that in the proc option the out dataset can be saved instead of store option. Snap shot from the SAS documentation.

 

"If you specify the OUTP=, OUTS=, OUTK=, or OUTH= option, PROC CORR creates an output data set
that contains statistics for Pearson correlation, Spearman correlation, Kendall’s tau-b, or Hoeffding’s D,
respectively."

proc corr data=statdata.fitness rank outh=test1;
var runtime age weight ;
with oxygen_consumption;

run;

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!

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