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

Hello alltogether,

 

I want to run proc factor with a correlation matrix with more then 150 items as input dataset.

Regarding the results of proc factor I need two datasets:

1. outstat=data1

2. ods output orthrotfactpat=data2 

 

I would like to reduce or even better avoid the output of proc factor.

But when using the NOPRINT option I don't get the ods output.

Is there any way to reduce or avoid the ouput of proc factor, but to get the datasets data1 and data2?

 

This is the syntax I use:

        proc factor  score  data = correlationmatrix (TYPE=CORR) method = PRINCIPAL  priors = ONE  rotate = PROMAX
                                      nobs = totalNumberObservation nfactors = NumberFactors  noprint  outstat = data1;
        ods output orthrotfactpat = data2;
        run;

 

Thanks for your help!

 

badikidiki

 

1 ACCEPTED SOLUTION

Accepted Solutions
badikidiki
Fluorite | Level 6
Just now I found an solution somewhere else in this community:
ods exclude all;
proc factor;...
run;
ods exclude none;

It works!
Thank you very much!

View solution in original post

3 REPLIES 3
PaigeMiller
Diamond | Level 26

You can't use NOPRINT with ODS OUTPUT

 

Remove the NOPRINT option, try this

 

ods listing select none;

proc factor ...

run;

ods listing select all;

--
Paige Miller
badikidiki
Fluorite | Level 6

Hello

 

thanks for your answer.

 

But I get an error message with your syntax.

ERROR: The LISTING destination is not active; no select/exclude lists are available.

What do I have to do?

 

badikidiki
Fluorite | Level 6
Just now I found an solution somewhere else in this community:
ods exclude all;
proc factor;...
run;
ods exclude none;

It works!
Thank you very much!

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2878 views
  • 0 likes
  • 2 in conversation