|
On Saturday, June 07, 1997 7:58 PM, Charlie Massoglia [SMTP:cmassoglia@voyager.net] wrote: > >Plus, RPGIII doesn't like native date > >fields anyway, so the big payoff wouldn't be there unless you were moving > >to RPG IV at the same time. > > > I do not understand why there is a problem using a file with a date data > type field in RPG III. As long as you compile the program CVTOPT(*DATE), > the date, time, and timestamp fields are made available to the program as > character fields. There is no problem printing or displaying the dates. > You just have to be VERY careful if you update them, insuring the contents > of the character field EXACTLY match the format specified in the DDS. I think the "have to be VERY careful if you update them" is the key phrase. Granted reading character data and moving it to a display file is easy. But some of the other points people on this list have made, particularly the one about there not being a "null" date value of 0 or similar, really ca uses trouble. If you have 0 for a date field, you can't move it to a DATE datatype unless you change your logic. Bob Cozzi Bob@rpgdev.net http://www.rpgdev.net * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the Midrange System Mailing List! To submit a new message, * * send your mail to "MIDRANGE-L@midrange.com". To unsubscribe from * * this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe MIDRANGE-L' in the body of your message. Questions * * should be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
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.