Date: Wed, 10 Feb 2010 08:53:48 -0800
Reply-To: Yaw <linkyox@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Yaw <linkyox@GMAIL.COM>
Organization: http://groups.google.com
Subject: Automating age bin creation
Content-Type: text/plain; charset=ISO-8859-1
Dear all:
I want to create agebins in months but I find myself writing several
lines of codes for this task. Given the age range I have my current
method will take a long time to get all the codes in.
Is there anyway I can expeditiously do this? like with an array or
something?
Thanks,
Yaw
Here's what I have been doing tirelessly:
if agemos le 1.500 then agecat=0;
else if agemos gt 1.500 and agemos lt 4.500 then agecat=3;
|