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 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 27 Feb 2006 02:13:13 -0800
Reply-To:   p.stat@TISCALI.IT
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   p.stat@TISCALI.IT
Organization:   http://groups.google.com
Subject:   Check values in different columns
Comments:   To: sas-l@uga.edu
Content-Type:   text/plain; charset="iso-8859-1"

Hi,

The data set data1 has 6 observations and 1 variable. The data set data2 has 50 observations and 3 variables.

I want to check how many observations in data1 are present also in columns of data2.

Example Data1 var1 1 2 3 4 5 6

data2 var2 1 2 8 9 33 ...

var3 0 7 16 78 301 ...

var4 3 5 6 66 134 ...

Result of the data step that I'm trying to get:

var2 contains 2 values of var1 var3 contains 0 values of var1 var4 contains 3 values of var1

Many thanks p.


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