home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!gatech!paladin.american.edu!auvm!UIAMVS.BITNET!ADPDKHTS
- Message-ID: <SAS-L%92082814151816@OHSTVMA.IRCC.OHIO-STATE.EDU>
- Newsgroups: bit.listserv.sas-l
- Date: Fri, 28 Aug 1992 13:15:00 CDT
- Reply-To: Deb Cannon 319-335-6321 <ADPDKHTS@UIAMVS.BITNET>
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: Deb Cannon 319-335-6321 <ADPDKHTS@UIAMVS.BITNET>
- Subject: time values solved, thanks
- Lines: 37
-
- And the winner is.....
-
- I mean, thanks to the long list of people who offered their
- help. I'd list them, but don't have a mailer that combines
- different pieces of mail easily, and if I forgot someone,
- I'd be embarressed. ;-)
-
- First off, neither I nor the company who produces the data,
- Mantissa, had a clue of *why* the data was in the format
- HHMMSSS. I think they took the SMF-produced time, which
- PDTIME4.0 would've worked great with, then fiddled some
- digits, or otherwise torked it over, and handed it to the
- file I'm trying to read. In any case, the last byte was
- unnecessary to even read, as I could be assured that all
- time representations were positive. Being the careful
- sort, I am reading it anyway. If they tork numbers like that,
- I don't really trust them!
-
- I ended up using Keith's solution, and had many other
- independently-presented solutions that used that same
- principle - put the number in some substring-able format
- and substring it to obtain values for HH, MM, and SS. I was on my
- way to doing this when I decided to ask the list, but it seemed so
- messy compared to how elegantly SAS handles dates, I was sure
- there was an easier way. In this case, I'm disappointed. As
- always, however, there is *still a way* to do it, so I am really
- not *that* disullioned.
-
- Thanks, SAS-L, as always,
-
- #-------------------------------------------------------------------#
- ║ Deborah Cannon Systems Support Group ║
- ║ Sr. Programmer Analyst Administrative Data Processing ║
- ║ Phone: 319-335-6321 University of Iowa ║
- ║ Fax: 319-335-6385 400 NWB ║
- ║ Email: adpdkhts@uiamvs Iowa City, Iowa 52242 ║
- #-------------------------------------------------------------------#
-