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 2006, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 7 Mar 2006 09:15:10 -0800
Reply-To:   chris@OVIEW.CO.UK
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   chris@OVIEW.CO.UK
Organization:   http://groups.google.com
Subject:   Re: Array Help... pretty please?
Comments:   To: sas-l@uga.edu
In-Reply-To:   <1141746458.923602.301540@p10g2000cwp.googlegroups.com>
Content-Type:   text/plain; charset="iso-8859-1"

Hi James,

I confess that I don't really understand the spec for what you're trying to achieve; I added the 'complete_date = .' because it gave the right answer in your test case. You need to define exactly what you're trying to achieve, and then the required code will be obvious to you. It'll be more helpful for you to do this yourself than for me to do it for you.

A thought - do you want later suspensions to be compared to the due date *as adjusted for earlier suspensions*?? My code isn't currently doing that. If so, you'll need to maintain a running 'adjusted due_date', rather than a running 'total suspension', as my code is doing, and use that in the if statement.

Good luck,

Chris. -------------------------------------------------------- Elvis SAS Log Analyser - http://www.oview.co.uk/elvis --------------------------------------------------------

jamesgreen55@yahoo.ca wrote: > Hi Chris; (And thanks also to Jiann-Shiun Huang & Monal); > > Thanks for your help, somehow I knew I was overcomplicating this a > couple of questions tho... > > If I remove the statement "or complete_date = ." the code seems to > ignore the last Suspension in sample G. The date 03/11/2006 that your > sample shows is correct but lets say that the complete date is not > missing, the code changes the result to 02/20/2006 which means it is > not counting the last record of the case_num. > > I have tried moving things around with no success, it seems to not > process the "tot_susp = tot_susp + (susp_end - susp_start+ 1); " > statement when it is the last.case_num. > > Any ideas? > James


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