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!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

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