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 (February 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 1 Feb 2007 12:43:58 -0500
Reply-To:     Hari Nath <hari_s_nath@YAHOO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Hari Nath <hari_s_nath@YAHOO.COM>
Subject:      Thanks all -- was prev: Color coding log messages
Comments: To: Mark Terjeson <Mterjeson@RUSSELL.COM>

I have no words to thank all SAS-L people.....no matter who posts and who answers, members in sas-l always give the best ideas and solutions apart spending their precious time for anyone who raises a question....i always had this in mind but when i saw Mark's post I couldnt control myself....thanks Mark for your example....it helps a lot...

hari

On Thu, 1 Feb 2007 09:32:48 -0800, Terjeson, Mark <Mterjeson@RUSSELL.COM> wrote:

>Hi Hari, > >Both %PUT and PUT can be used to create >color accentuated messages in the log. > >If the first 5 characters in your message >are uppercase and match "NOTE:" then your >message line in the log will be the NOTE >color. > >If the first 6 characters in your message >are uppercase and match "ERROR:" then your >message line in the log will be the ERROR >color. > >If the first 8 characters in your message >are uppercase and match "WARNING:" then your >message line in the log will be the WARNING >color. > > >e.g. > > > >option nosource; > >%put; >%put This is regular log color.; >%put; >%put Color activated tokens, with the prompt displayed.; >%put ==================================================; >%put NOTE: This is NOTE color, with the prompt.; >%put ERROR: This is ERROR color, with the prompt.; >%put WARNING: This is WARNING color, with the prompt.; >%put; >%put Color activated tokens, with the prompt blanked out.; >%put (not removed ... note the indenting remains); >%put ====================================================; >%put NOTE- This is NOTE color.; >%put ERROR- This is ERROR color.; >%put WARNING- This is WARNING color.; >%put; > > > >data _null_; > put; > put 'This is regular log color.'; > put; > put 'Color activated tokens, with the prompt displayed.'; > put '=================================================='; > put 'NOTE: This is NOTE color.'; > put 'ERROR: This is ERROR color.'; > put 'WARNING: This is WARNING color.'; > put; > put 'Color activated tokens, with the prompt blanked out.'; > put ' (not removed ... note the indenting remains)'; > put '===================================================='; > put 'NOTE- This is NOTE color.'; > put 'ERROR- This is ERROR color.'; > put 'WARNING- This is WARNING color.'; > put; >run; > > >option source; > > > > > > >Hope this is helpful. > > >Mark Terjeson >Senior Programmer Analyst, IM&R >Russell Investment Group > > >Russell >Global Leaders in Multi-Manager Investing > > > > > > > >-----Original Message----- >From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of >Hari Nath >Sent: Thursday, February 01, 2007 7:23 AM >To: SAS-L@LISTSERV.UGA.EDU >Subject: Re: %put error in log > >Many thanks Guido, Mark and Joyce.....i didnt try 'put' at first for the >reason being that %put will produce color logs....but even put statement >produces color logs.....thanks for letting mw know about that... > >helped me a lot.... >hari > >On Thu, 1 Feb 2007 09:16:54 -0600, Joyce <joycegeorge@GMAIL.COM> wrote: > >>AND U DONT NEED TO USE %PUT; >>just use PUT stmt. >> >>-Jo >> >>On 2/1/07, Hari Nath <hari_s_nath@yahoo.com> wrote: >>> >>> Hi all, >>> Iam trying to put a log message when i have multiple patients, but >the >>> code below doesnt seem to produce the right log eventhough i dont >>> have >any >>> repeats in patients, the log has the message "check error" >>> irrespective >of >>> multiple patients. >>> I know am wrong somewhere, can someone correct me..... >>> >>> Many thanks >>> hari >>> >>> >>>>>>>>>>>sas 8.2<<<<<<<<<< >>> >>> proc sort data=temp2 out=test2 ; >>> by ptno visit ; >>> run ; >>> >>> data temp3 (keep=ptno centre terma actevent); >>> set test2 ; >>> by ptno visit ; >>> if centre=1001; >>> if not last.ptno then >>> do ; >>> delete; >>> %put ERROR: check error at this centre ; >>> end ; >>> run ; >>>


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