%put &i;
data tempi;
set raw;
if _N_=&i;
run;
data tempi2;
set raw;
if &i-26<=_N_<=&i-1;
run;
ods listing close;
ods output "Eigenvalues of the Correlation Matrix"=eigenv;
proc princomp data=tempi2;
var com_:;
run;
ods output close;
ods listing;
data eigenv; set eigenv; keep number proportion; if number<=4;run;
proc transpose data=eigenv out=eigenf(drop=_name_) prefix=factor_;
id number;
var proportion;
run;
[color=#0000BF:3gmqj3gw][i:3gmqj3gw]NOTE: SAS went to a new line when INPUT statement reached past the end of a
line.
NOTE: The data set WORK.MUS has 7 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 4.21 seconds
cpu time 0.09 seconds[/i:3gmqj3gw][/color:3gmqj3gw]
The above approach should be able to direct all the information (e.g., source code, notes, warnings, errors, etc.) that would otherwise be output to the log window to the text file called <path>\<filename1.ext>. It would also write to the text file <path>\<filename2.ext> all the information that would otherwise be produced in the output window (such as output of proc sql/print/means/etc.). Once the program completes executing, you may review that two files as you need. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->