LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (November 2004, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 23 Nov 2004 09:51:38 -0500
Reply-To:     Jim Groeneveld <jim1stat@YAHOO.CO.UK>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jim Groeneveld <jim1stat@YAHOO.CO.UK>
Subject:      Re: splitting the log
Comments: To: Bhavani Shankar <bhavani.shankar@INDIA.BIRLASOFT.COM>

Hi Shankar,

Put a PROC PRINTTO with appropriate log file name before each macro call to %PANEL. Or make PROC PRINTTO a part of the macro and add a log file name parameter.

Regards - Jim. -- Y. (Jim) Groeneveld, MSc., Biostatistician, Science Team Vitatron B.V., Meander 1051, 6825 MJ Arnhem P.O.Box 5227, 6802 EE Arnhem, the Netherlands Tel: +31/0 26 376 7365, Fax: +31/0 26 376 7305 Jim.Groeneveld_AT_Vitatron.com (replace _AT_ by AT sign) http://www.vitatron.com, http://home.hccnet.nl/jim.groeneveld

My computer multi-boots OS's, each of them adapting the DST twice a year.

[common disclaimer]

On Tue, 23 Nov 2004 20:09:13 +0530, Bhavani Shankar <bhavani.shankar@INDIA.BIRLASOFT.COM> wrote:

>I got a program that creates a single log. >But I need separate log for each panel >can any one suggest please. >I appreciate your help. >*************************************************************************** * >************************* >**********************My code looks like >this**************************************************** > >*************************************************************************** * >************************** >%let logfile = %str('\\abcd\sample\Sas Log\Myprog.log'); >%let listfile = %str('\\abcd\sample\Sas List\Myprog.lst'); >proc printto new log=&logfile print=&listfile; >run; >Rsubmit Persist=Yes; >%Macro Panel(data=,month=,year=,lenhist=,lenperf=,busname=) ;/* some Macro >code */ >/* some macro code */ >%Mend Panel; >%Panel(data=abc,month=08,year=2004,lenhist=8,lenperf=4,busname=bbc) ; >%Panel(data=def,month=09,year=2004,lenhist=9,lenperf=3,busname=sbi) ; >%Panel(data=ghi,month=10,year=2004,lenhist=10,lenperf=2,busname=amex) ; >proc printto; >run; >endrsubmit; > > > >Disclaimer: 'This email and any files transmitted with it are confidential >and intended solely for the use of the individual or entity to whom they are >addressed. If you have received this email in error please notify the system >manager. Please note that any views or opinions presented in this email are >solely those of the author and do not necessarily represent those of the >company. Finally, the recipient should check this email and any attachments >for the presence of viruses. The company accepts no liability for any damage >caused by any virus transmitted by this email.'


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