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 (January 2006, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 31 Jan 2006 10:05:55 -0800
Reply-To:     "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Subject:      Re: What does colon after equal sign mean?
Comments: To: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Content-Type: text/plain; charset="us-ascii"

But the colon operator can work between two variables truncating the longer to length of the shorter during comparison...

If a =: b;

Both of these keep the observation: data test; a='a'; aa='aa'; if a=:aa; run;

data test; a='a '; aa='aa'; if trim(a)=:aa; run;


Paul Choate DDS Data Extraction (916) 654-2160

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Gerhard Hellriegel Sent: Tuesday, January 31, 2006 9:24 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: What does colon after equal sign mean?

By the way, there are other possibilities to get the same. Look at the following:

data _null_; set sashelp.class; where name like "A%"; run;

However the LIKE operator has many other possibilties. "%" stands for all chars, "_" for a single one

e.g. "_a%c%" means: the second char is a "a" and the rest contains a "c" anywhere...

On Tue, 31 Jan 2006 12:08:42 -0500, Greg Curson <gscsrc@HOTMAIL.COM> wrote:

>On Tue, 31 Jan 2006 11:21:41 -0500, Gerhard Hellriegel <ghellrieg@T- >ONLINE.DE> wrote: > >>that means "starts with..." >>Including >>Avcvcvvc >>Abdbebeb >>A >>A.... >>... >> >> >> >>On Tue, 31 Jan 2006 08:07:48 -0800, Greg Curson <gscsrc@HOTMAIL.COM> >wrote: >> >>>if pjwrktyp =:'A' or >>> pjwrktyp =:'G' or >>> >>> >>>in the above if statement what does the colon before the 'A' and 'G' >>>mean how >>>does it effect the statement? >>> >>> >>>Thanks! > >Thanks all ! > >I understand the code now > >Greg

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