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 (February 2000, 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 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
Comments: To: lars.ladfors@telia.com
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


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