Date: Wed, 16 Feb 2000 11:51:58 +0100
Reply-To: peter.crawford@DB.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Peter Crawford <peter.crawford@DB.COM>
Subject: wildcards
Content-type: text/plain; charset=us-ascii
if only those specific values of BDIAG1 are wanted and there are other values to
be ignored like 767b, then you can use use
plexus=(BDIAG1 in('767', '767a', '767b', '767cg') );
If 767* means 767 followed by anything including blank and null then
plexus=(BDIAG1=:'767');
that : implies use just the length of the value on the right hand side.
Datum: 16.02.2000 11:38
An: SAS-L@listserv.uga.edu
Antwort an: lars.ladfors@telia.com
Betreff: wildcards
Nachrichtentext:
I want to make a new variable (plexus=1) if BDIAG1 is 767 or 767a or
767ab or 767cg and so on.
data mfr.s;
set mfr.plexus;
plexus=(BDIAG1='767**');
run;
This is not working
How to express 767* in SAS language?
BDIAG is $5
Yours
Lars