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 (April 2009, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 28 Apr 2009 09:39:09 -0500
Reply-To:   Joe Matise <snoopy369@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Joe Matise <snoopy369@GMAIL.COM>
Subject:   Re: Urgent - Please Help - Assigning a sort variable dynamically
Comments:   To: aahan.sas@gmail.com
In-Reply-To:   <e5ad6d16-3683-40fc-8e87-5869eda0b70b@j9g2000prh.googlegroups.com>
Content-Type:   text/plain; charset=ISO-8859-1

You need to be more clear on what you want. I also don't understand your constraint - you don't want to use proc format?? Why?

-Joe

On Tue, Apr 28, 2009 at 9:26 AM, <aahan.sas@gmail.com> wrote:

> Hi , > Could anybody help me in solving this. > > I have one column dataset called category as below > > Category > _________ > > A > A > A > A > B > B > B > B > C > C > C > C > D > D > D > D > > Now the desired dataset should have two columns category and sort as > below > > category sort > ______________ > A 1 > A 1 > A 1 > A 1 > B 2 > B 2 > B 2 > B 2 > C 3 > C 3 > C 3 > C 3 > D 4 > D 4 > D 4 > D 4 > > The only constraint is I dont want to use any If then else of proc > format for this. Depending uon the number of categories the sort > should be assigned dynamically. This is real urgent for me. > > I really appreciate your time involved. > > Thanks in advance. >


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