1。first run:
- ods trace on;
- PROC CORR DATA=ms_umko2;VAR ms_edss bdi_score; RUN;
- ods trace off;
复制代码then you can see the following info in the log window:
Output Added:
-------------
Name: VarInformation
Label: Variables Information
Template: base.corr.VarInfo
Path: Corr.VarInformation
-------------
Output Added:
-------------
Name: SimpleStats
Label: Simple Statistics
Template: base.corr.UniStat
Path: Corr.SimpleStats
-------------
Output Added:
-------------
Name: PearsonCorr
Label: Pearson Correlations
Template: base.corr.StackedMatrix
Path: Corr.PearsonCorr
-------------
2。so you can know the path and variable name from log window, then you can add ods output statement in proc corr, then run this statement again:
- PROC CORR DATA=ms_umko2;VAR ms_edss bdi_score;
- ods output VarInformation = corr_var_info;
- ods output SimpleStats = Corr_Simple_Statistics;
- ods output PearsonCorr = Corr_Out;
- RUN;
复制代码and finally you get 3 sas output datasets or you can choose one of them that you want.
and you can see
http://www.caliberdt.com/tips/Sep2004.htm for more details.