|
>> In V4R3 we compiled all programs using CVTOPT(*DATETIME), but now in V4R4 is will not compile with the CvtOpt option of *DATETIME, I have to use *NONE for this parameter or it will not compile. Are you sure moving to V4R4 is the only change you've made ? I wouldn't have expected your Move to work in the first place unless one of the fields was a real date field. Anyway - you need to decide if you're going to use real dates or not. The default for CVTOPT is to keep dates as dates rather than convert to character which is what *DATETIME does. When you code: D LowDate S LIKE(PXBEGD) INZ('0001-01-01') You are saying that LowDate is a _real_ date field - therefore the init value should be D'0001-01-01' it has a D in front of it (don't ask why it makes no sense to me). When you previously compiled with CVTOPT(*DATETIME) you were causing PXBEGD to be defined as a character field and therefore LowDate was also character and the init without the D was just fine. Just as an aside - your LowDate is not really needed *LOWVAL would work just fine. +--- | 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.