Date: Tue, 19 Dec 2006 12:24:39 -0500
Reply-To: Ya Huang <ya.huang@AMYLIN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ya Huang <ya.huang@AMYLIN.COM>
Subject: Re: current proc printto destination
The last fileref in sashelp.vextfl seems the one you want. Don't know
if this is robust enough though.
proc printto print="c:\temp\xx.txt";
proc print data=sashelp.class;
run;
proc sql noprint;
select xpath into : printtopath
from
sashelp.vextfl
having input(compress(fileref,'#LN'),best.)=max(input(compress
(fileref,'#LN'),best.))
;
%put &printtopath;
59 %put &printtopath;
c:\temp\xx.txt
On Tue, 19 Dec 2006 08:02:23 -0800, ckxplus@yahoo.com <ckxplus@YAHOO.COM>
wrote:
>Is there a way to determine whether proc printto is currently in effect
>and to store the current proc printto destination in a macro variable?
>I'd like to reroute some output from within a macro to a temporary
>destination, then reroute it back to the original proc printto
>destination. Can this be done?
>
>John Hendrickx