Date: Wed, 16 Feb 2000 15:37:55 +0100
Reply-To: peter.crawford@DB.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Peter Crawford <peter.crawford@DB.COM>
Subject: Antwort: wildcards
Content-type: text/plain; charset=us-ascii
You are right
175 data test;
176 a= '123' ;
177 if a =: '1234' then b='Howard_Schreier@ita.doc.gov' ;
178 else b='Peter.Crawford@db.com' ;
179 put _all_ ;
180 run;
A=123 B=Howard_Schreier@ita.doc.gov _ERROR_=0 _N_=1
NOTE: The data set WORK.TEST has 1 observations and 2 variables.
NOTE: The DATA statement used 0.18 seconds.
my apols to the list, in particular lars.ladfors@telia.com.
My thanks and appreciation to 'Howard_Schreier@ita.doc.gov' ;
The above test demos his point that =: uses the shorter length
Datum: 16.02.2000 14:24
An: Peter Crawford/Zentrale/DeuBaExt
Betreff: wildcards
Nachrichtentext:
> plexus=(BDIAG1=:'767');
> that : implies use just the length of the value on the right hand side.
Not exactly. If BDIAG1 had length <3, both sides would be truncated prior to
comparison.