|
ISO date is d'CCYY-MM-DD' as in d'2002-08-19'. If you don't specify in the header what date format to use for constants, ISO is the default. Either: H DatFmt(*MDY) or change your constant to ISO format. Regards, Jim Langston -----Original Message----- From: Frank.Kolmann@revlon.com [mailto:Frank.Kolmann@revlon.com] I have found that move Char fields of 26 bytes into ISO dates works. eg '1991-10-24-05.17.23.000000' you need the separators as shown. fmt 'YYYY-MM-DD-HH.MM.SS.ssssss' ssssss is millisecs. Or 20 byte numeric 19911024051723000000, obviously no sepatators. Time and secs can be zero. HTH Frank Kolmann >Medrano, Rudy wrote. > >I am getting a "Thje Date Literal is not valid" error message whenever I >compile my RPG program. Below is how I have defined the date: > > > 40 DTodaysDate S D DatFmt(*ISO) Inz(D'08/12/2002')
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.