Date: Wed, 13 Oct 2004 15:20:00 +0200
Reply-To: Avikam Nuriel <mshope@CC.HUJI.AC.IL>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Avikam Nuriel <mshope@CC.HUJI.AC.IL>
Organization: Israel Inter-University Computation Center
Subject: Re: Parsing the HLQ of a dataset
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Hi,
I want to create new data :
data a;
proc sort;
by x y;
data a;set;
file 'name';
put x y z;
but I want to ID number that wiil change any time x,y change.
ex:
cards;
x y z
1 1 4
1 1 0
1 2 3.4
2 1 3.9
2 2 5.1
2 2 4.8
the result will be
id x y z
1 1 1 4
2 1 1 0
1 1 2 3.4
1 2 1 3.9
1 2 2 5.1
2 2 2 4.8
regards
Avikam Nuriel
The Hebrew University
of Jerusalem
Israel