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 (May 2001, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 22 May 2001 08:26:20 -0600
Reply-To:     Darran Zenger <DZENGER@KLUNE.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Darran Zenger <DZENGER@KLUNE.COM>
Subject:      Case Select in SAS?
Content-Type: text/plain; charset="iso-8859-1"

Hi Folks-

I've got a question. Is it possible to create a Case Select option within SAS, like you can in Visual Basic? What I've got is, I'm trying to calculate vacation time available, but have 5 cases which have the range as follows:

1-4 years 80.00hrs 5-9 years 88.00 hrs 10-14 years 128.00 hrs 15-19 years 168.00 hrs 20+ 208 hrs

I have hire dates and will use those as a starting point to determine which vacation category they fit in and calculate vacation pay. I also have to resolve the fact that I need to distinguish between hourly employees and salaried employees. What I have done is created a new variable which converted the salaried people to hourly and just set the variable equal to the hourly pay of those who are hourly. I've used the IF-THEN/ELSE statement to create the vacation pay but I'm thinking there is a better way around this and to use a Case Select. Any ideas?

Thanks, Darran


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