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 (April 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 25 Apr 2007 15:20:48 -0400
Reply-To:   Jane <program.sas@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Jane <program.sas@GMAIL.COM>
Subject:   Data step question

Hi, All

I have a dataset with the structure like this:

pid var1 var2 var3 var4 var5 --------------------------------------- 111 aaa bbb 222 ccc ddd 333 444 aaa 555 eee 666

I want to pick up the subjects with any of var1-var5 have value. Like this

pid ---- 111 222 444 555

How can I do this in some simple way, since I actually have 20 var. If I use if... then... that is really a lot work to do. Thanks

Jane


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