|
>Date: Wed, 13 Dec 2000 18:30:00 -0500 >From: D.BALE@handleman.com > >I need to store the current date (not job date!) in a field written out to a >file. > ... >The RPG Reference states that "The date format depends on >the date format job attribute QDATFMT". This is a system value assigned to >the job that can be changed via CHGJOB. Given our QDATFMT value of *MDY here >in the states, I know I can manipulate the mmddyyyy date in a data structure >to get the desired yyyymmdd format. But our overseas branches may have a >different QDATFMT value. I would have thought that this value could be found >in the program status data structure, but a search in the RPG Reference turned >up nothing. Dan, I've always thought that the TIME opcode with the numeric result was a bit silly, since it returned a value that was unusable as data within the program. Since you're strictly stuck with RPG III, you'd probably be best to just call QWCCVTDT asking for the date in *YMD format. You'll get a 7-digit number back - the first digit is the century number - just add 19 to it to get the first YY. Barbara Morris +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | 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.