|
|
9#

楼主 |
发表于 2010-1-5 03:27:07
|
只看该作者
Re: 再请教一个循环的问题
Please try the following to see if this meets your needs:
[i:1gzosrbn][color=#0000FF:1gzosrbn]proc printto log = '<path>\<filename1.ext>';
run;
proc printto print = '<path>\<filename2.ext>';
run;
<your code that may produce huge amount of information>
proc printto print = print;
run;
proc printto log = log;
run;[/color:1gzosrbn][/i:1gzosrbn]
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:) --> |
|