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 (July 2005, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 11 Jul 2005 10:07:01 -0700
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:   How to simplify a comparison -
Content-Type:   text/plain; charset="iso-8859-1"

Good morning SAS aficionados -

I just posted some code to a thread that contains a headache I often have:

if (a=w & a~='') or (b=x & b~='') or (c=y & c~='') or (d=z & d~='');

or similarly:

if (a=b|a=c) & a~='';

The issue is that I want to check for non-missing equivalence between two (or more) variables simultaneously. Any comments on how one might simplify this?

tia

Paul Choate DDS Data Extraction (916) 654-2160 


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