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 (March 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: Randy <randistan69@hotmail.com>
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


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