Date: Fri, 18 Jul 2003 07:55:46 -0400
Reply-To: Thomasset Pierre <pierre.thomasset@EURONET.BE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Thomasset Pierre <pierre.thomasset@EURONET.BE>
Subject: Re: Using link in data step
Hello,
We sometimes use the following program structure :
data tz;
merge t1 t2;
by a b;
if first.b then link premier;
link suivant;
if last.b then link dernier;
return;
premier:
... process first of a group 'a b' ...
return;
suivant:
... process each of a group 'a b' ...
return;
dernier:
... process last of a group 'a b' ...
return;
run;
Regards.
|