LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (February 2000, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 29 Feb 2000 15:02:03 -0500
Reply-To:     "Fehd, Ronald J." <rjf2@CDC.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Fehd, Ronald J." <rjf2@CDC.GOV>
Subject:      Re: Creating a sequential number for each observation in a by gro
              up
Comments: To: EMRAIN <emrain@AOL.COM>
Content-Type: text/plain; charset="iso-8859-1"

> From: EMRAIN [mailto:emrain@AOL.COM] > I need to creat a sequential number (starting at 001) for > each observation in a By group.

leading zeros indicates a character variable. RTFM on the format Zw.d Seq_Num = put(_N_,z3.);

Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov ---> cheerful provider of UNTESTED SAS code!*! <---


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