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 2012, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 21 May 2012 00:22:49 -0400
Reply-To:     Randy <randistan69@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Randy <randistan69@HOTMAIL.COM>
Subject:      One Minute intervals

I have to construct one minute intervals for 6 hours...I wrote the following:

data want ; set have ; if '07:00:00't le time < '07:01:00't then do ; OMI = 1 ; end ; if '07:01:00't le time < '07:02:00't then do ; OMI = 2 ; end; /*and so on for the next six hours*/ run;

Is there a shorter way of constructing these intervals? Thank you in advance. Randy


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