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 (July 2010, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 12 Jul 2010 10:22:56 -0700
Reply-To:     "Choate, Paul@DDS" <Paul.Choate@DDS.CA.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Choate, Paul@DDS" <Paul.Choate@DDS.CA.GOV>
Subject:      Re: G-R-E-A-T SAS Tip of the Day!
In-Reply-To:  <>
Content-Type: text/plain; charset="us-ascii"

Cryptic documentation for the PUTLOG Statement:

"Tip: You can precede your message text with WARNING, MESSAGE, or NOTE to better identify the output in the log."

Nothing about colon or dash modifiers. You think it would be designed to work more fluidly with the ERROR statement:

The following would make more sense if data _null_; set sashelp.class; if age>15 then error 'people over 15'; run;

came out the way this comes out: data _null_; set sashelp.class; if age>15 then error 'ERROR: people over 15'; run;

Ran the byte() function over 0-255 appended to WARNING, MESSAGE, and NOTE - colons and dashes appear to be the only single byte modifiers: data _null_; do name='WARNING','ERROR','NOTE'; do i=0 to 255; logtest=strip(name)||byte(i); byte=byte(i); put logtest "<=> " logtest "Modifier="i; end; end; run;

It also demonstrates the only trailing character SAS strips from a string - look at the output for ||byte(32)

Paul Choate DDS Data Extraction (916) 654-2160

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Paul Dorfman Sent: Thursday, July 08, 2010 1:06 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: G-R-E-A-T SAS Tip of the Day!


A great tip indeed.

I have been actively aware of these properties in the part related to NOTE:, WARNING: or ERROR:, but those of their dashed brethren, NOTE-, WARNING- or ERROR-, are a (good) news to me.

Also, my theory of those things is purely phenomenological. I do not know if Don has actually derived the tip from the first principles - i.e., the SAS documentation. If the answer is yes, I am curious where in the documentation the fundamental law is described.

Kind regards ------------ Paul Dorfman Jax, FL ------------

On Thu, 8 Jul 2010 14:43:02 -0400, Michael Raithel <michaelraithel@WESTAT.COM> wrote:

>Dear SAS-L-ers, > >I am sure that most of you access each and every day to read the SAS Tip of the Day and to look at the various other SAS resources available there. But, for those few who may have missed it today, check out Don Henderson's G-R-E-A-T tip of the day on the home page. Very cool, and... I didn't know that! > >BTW, if you are reading this on Friday, simply click on the "Prior tip" link to check out this interesting tip. > >Best of luck in all your SAS endeavors! > > >I hope that this suggestion proves helpful now, and in the future! > >Of course, all of these opinions and insights are my own, and do not reflect those of my organization or my associates. All SAS code and/or methodologies specified in this posting are for illustrative purposes only and no warranty is stated or implied as to their accuracy or applicability. People deciding to use information in this posting do so at their own risk. > >+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >Michael A. Raithel >"The man who wrote the book on performance" >E-mail: > >Author: Tuning SAS Applications in the MVS Environment > >Author: Tuning SAS Applications in the OS/390 and z/OS Environments, Second Edition > > >Author: The Complete Guide to SAS Indexes > > >+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >If you obey all the rules you miss all the fun. - Katharine Hepburn >+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

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