|
The SRCDAT is now and has always been a numeric field of six bytes. There is no date-type logic associated with it. In SQL, you could use a date function to convert this to a date-type field, and you'd be all set. But I cannot see how this might have worked in the past. "Curiouser and curiouser," cried Alice. Dennis E. Lovelady Vern Hamberg <vhamberg@centerfieldtechnology.com> Sent by: midrange-l-bounces@midrange.com 01/09/2003 05:30 PM Please respond to Midrange Systems Technical Discussion To: Midrange Systems Technical Discussion <midrange-l@midrange.com> cc: Subject: Re: Source Dates Hi, Bill On v5r1, I don't get the many records I have for 970531 (that we want to see), or the 1 record for 030109 (that we don't) - only those that have 000000. Same at v3r7 - no records presented for 1997 or 1999, both of which are present in the source file. HTH Vern At 12:45 PM 1/9/2003 -0800, you wrote: >Vern Hamberg wrote: > > Bill, I'm at V5R1. It sorted by the raw numeric value, no > > consideration of century, so 97/05/31 preceded 03/01/09. I also tried > > it at V3R7, and it behaved the same way - no regard for century. > >Vern, I appreciate you trying that out. What happens if you were to: >Select * from qrpgsrc where srcdat<021231 ? >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.