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 (September 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 16 Sep 2009 14:27:56 -0700
Reply-To:     xlr82sas <xlr82sas@AOL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         xlr82sas <xlr82sas@AOL.COM>
Organization: http://groups.google.com
Subject:      Re: Interesting Construct
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset=ISO-8859-1

On Sep 16, 3:27 am, nathaniel.wood...@DOM.COM (Nathaniel Wooding) wrote: > Hey, Art > > This was quite interesting and the origin of the tilde as a negation symbol is certainly explained. > > In the list of variations, I particularly liked the Big Tilde and Little Tilde. They sound like they would be good names for a couple of suspects in a murder mystery set in a college math department. > > Nat > > > > -----Original Message----- > From: SAS(r) Discussion [mailto:SA...@LISTSERV.UGA.EDU] On Behalf Of Arthur Tabachneck > Sent: Tuesday, September 15, 2009 11:38 PM > To: SA...@LISTSERV.UGA.EDU > Subject: Re: Interesting Construct > > Nat, > > It's not just SAS. Take a look at:http://en.wikipedia.org/wiki/Tilde > > Art > > P.S. Joe: Isn't 5 aces indicative of some form of cheating? > -------- > On Tue, 15 Sep 2009 21:43:02 -0400, Nathaniel Wooding > <nathaniel.wood...@DOM.COM> wrote: > > >Jules > > >This is a new one on me and I see from other replies that it is a NOT > operator. I happen to have a V5 basics manual handy and it lists the "L" > written so that it is lying on its side with the short bar pointing down (I > do not have one on this keyboard) and also the caret (upside down V). The > manual does not list the tilde as a not operator. The aforementioned symbols > were used on different operating systems and I wonder whether the tilde came > into use when some operating system that was added to the SAS world required > something other than these two. > > >I hope that all is well with you and your family. > > >Nat > > >-----Original Message----- > >From: SAS(r) Discussion [mailto:SA...@LISTSERV.UGA.EDU] On Behalf Of Jules > Bosch > >Sent: Tuesday, September 15, 2009 5:57 PM > >To: SA...@LISTSERV.UGA.EDU > >Subject: Interesting Construct > > >Has anyone ever seen the following SAS construct? > > >if missing(studyday) and ~missing(trtdate) and ~missing(enddate) then do; > > >In particular, I am interested in the use of the tilde. Can anyone > >elaborate? > > >Jules > >http://www.boschsystems.com/ > >CONFIDENTIALITY NOTICE: This electronic message contains > >information which may be legally confidential and or privileged and > >does not in any case represent a firm ENERGY COMMODITY bid or offer > >relating thereto which binds the sender without an additional > >express written confirmation to that effect. The information is > >intended solely for the individual or entity named above and access > >by anyone else is unauthorized. If you are not the intended > >recipient, any disclosure, copying, distribution, or use of the > >contents of this information is prohibited and may be unlawful. If > >you have received this electronic transmission in error, please > >reply immediately to the sender that you have received the message > >in error, and delete it. Thank you.- Hide quoted text - > > - Show quoted text -

I think the use of NOT, ~ and ^ came about due to issues with characters in different operating systems. I think when you copy a program from windows ASCHII to another coding ie EBCIDIC or six bit ASCHII some of these chacaters map into other characters, strange hex codes or are just absent.

For that reason I try to stay away from ~ and ^ because of issues on mainframes with those characters. Also I find NOT to provide better documentation.

It would be interesting to get a list of characters with the same function.

Herea re a few from the top of my head & and | or : eqt (datastep and sql) there are other truncation pairs ~ ^ NOT || !! ++ + (roughly the same in some circumstances) 1<>3 max(1,3) 1>< 3 min(1,3)

I always get confused about [], {} and ( ) in datastep arrays a(*), a [*] and a{*} I try to use '[' because of conflicts with function calls and I think it is more operating system independent??

As a side not I never use || for concatenation but use !! which works on all operating systems.

Other things I avoid 1. folders that are numeric, a number can never be a variable. And tokens for folder names are very powerful. 2. never use blanks in folder names 3. always use lower case for folder names because of UNIX 4. avoid punctuation in folder names


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