LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: ckxplus@YAHOO.COM

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


Back to: Top of message | Previous page | Main SAS-L page