Date: Mon, 16 Mar 2009 01:35:16 +0530
Reply-To: Anindya Mozumdar <anindya.lugbang@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Anindya Mozumdar <anindya.lugbang@GMAIL.COM>
Subject: Re: Macro
In-Reply-To: <200903151918.n2FAlQ5e015240@malibu.cc.uga.edu>
Content-Type: text/plain; charset=ISO-8859-1
> Anindya, do I use this macro (start and end) only for the first data
> statement where I call up the file of each patient, or does the macro end
> after the entire data for one patient is processed, that is, after the last
> data statement.
There are actually two macros in my code. Inside processPatient, you
put the code where you write your process for a single patient. The
processPatients macro repeatedly calls the above for each patient for
every observation in your patient dataset. Note that I have written
%do i = 1 %to 1000 as you have said that there are 1000 patients in
your dataset. This number needs to be replaced with the actual number
of observations in your patient dataset, if it differs from 1000.
Regards,
Anindya
|