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 (November 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 23 Nov 2006 18:27:58 -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: Subject: SASTip 142 - SAS tries to understand what you mean
Comments:   To: Peter Crawford <peter.crawford@BLUEYONDER.CO.UK>
Content-Type:   text/plain; charset=ISO-8859-1

I ran it on v8.12/windows, got lots of warnings, though it did run and got the result. Do you mean "run without error" literally mean "error" only or you really didn't see the "warning"? If you don't even see the warning, maybe v9 has different default options setting?

On Thu, 23 Nov 2006 17:50:49 -0500, Peter Crawford <peter.crawford@BLUEYONDER.CO.UK> wrote:

>here is a stunning demo of unusual SAS code > >Thankyous to Phil Mason woodstreet.at.gmail.dot.com > >those of you on Phil's SAS Tips email list may already have seen this > > >---------------------------- Original Message ---------------------------- >Subject: SASTip 142 - SAS tries to understand what you mean >From: "Phil Mason" <woodstreet at gmail dot com> >Date: Thu, November 23, 2006 21:25 >To: "SAS Tips List" <sas_tips_list@woodstreet.org.uk> >-------------------------------------------------------------------------- > >Take a look at the code below. How many things can you find wrong with it? >Would you be surprised to know that it actually will run without error? It >does. Cut and Paste it into SAS and see what happens – and then try to >decide if this is a good or bad thing for SAS to do. That is, do we really >want SAS to guess at what we mean when we mis-type things? > > > > >p.s. I found this code in a presentation on the net, but forget which one >– sorry! > > >Code > > >date imput; > lablah x='X var' y='Y var' z='Z var'; forman x 5.; > inform x 5. y $5.; drip a; keen x y z; > retina z 'Same Value' a 'Drip me'; > inpub x 5. y $5.; outpuke; > putz x=; > cars; >00001Test1 >00002Test2 >; >runt; > >porc print daat=imput labeer noobo doubel rount; > vra z x y; > yb x; >ruin; > >Tested under SAS 9.1.3 SP4 using Windows XP Professional > > >Wood Street Consultants Ltd. >tips@woodstreet.org.uk >www.woodstreet.org.uk <http://www.woodstreet.org.uk/> > > > >Dont forget the Technical Event for SAS Users in London 12th December >http://www.technical-event.co.uk/ > > > > >-- >brought to you by >-- >Peter Crawford >Peter.Crawford@blueyonder.co.uk


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