Programming the statistical procedures from SAS

STORE in SAS studio

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 6
Accepted Solution

STORE in SAS studio

[ Edited ]

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;

 

 

Accepted Solutions
Solution
‎11-02-2016 07:38 AM
SAS Super FREQ
Posts: 3,311

Re: STORE in SAS studio

[ Edited ]

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


All Replies
Solution
‎11-02-2016 07:38 AM
SAS Super FREQ
Posts: 3,311

Re: STORE in SAS studio

[ Edited ]

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;

 

Occasional Contributor
Posts: 6

Re: STORE in SAS studio

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;
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 134 views
  • 0 likes
  • 2 in conversation