|
You have to put the date format into Factor 1 when the resulting date format and the format of the non-date value are different. Put the non-date format (i.e. *USA in your case) into Factor 1. -Bob Cozzi www.RPGxTools.com RPG xTools - Enjoy programming again. -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Douglas W. Palme Sent: Monday, February 27, 2006 11:52 AM To: RPG Group Subject: Date problem I am having a problem moving a date, I know it is going to be something really stupid on my part, but any help would be appreciated. I have two variables defined as follows: DDMYSDATE S 10A DDMYEDATE S 10A I am passing them a date value with the following c-spec: C EVAL DMYSDATE = '02/01/2006' C EVAL DMYEDATE = '02/28/2006' up to this point everything is fine.....however when I attempt to move the dates into two fields on a report, which are defined as type L it balks: Here is the move statement: C MOVE DMYSDATE PRTSTARTD C MOVE DMYEDATE PRTENDD I get a date/timestamp error everytime..... Suggestions? If you bought it, it was hauled by a truck - somewhere, sometime.
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.