× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Yes I usually use numeric date fields, but this client has
requested/demanded a true date field so that the end-user sees the message
when the leave the field. Apparently too many keying errors have been
committed and he is fed up. So I'm doing RPG archeology once again and
wanted to "just" put the date field on the screen and be done with it.
I can write code around it, but my point was that I should have to.
-Bob


-----Original Message-----
From: rpg400-l-bounces+cozzi=rpgiv.com@xxxxxxxxxxxx
[mailto:rpg400-l-bounces+cozzi=rpgiv.com@xxxxxxxxxxxx] On Behalf Of
MWalter@xxxxxxxxxxxxxxx
Sent: Friday, January 28, 2005 11:56 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: Why RPG IV Sucks

Far be it for me to tell Mr. Cozzi how to write code, but I've given up on
using Date and Time fields on my DDS DSPF and PRTF. I use character fields
and just format the data in. Actually, I got the same error yesterday on a
program that still contained a date field. I agree, the iSeries should be
smart enough to map any date format to any date format on the fly. You
shouldn't have to worry about stuff like that.

Thanks,

Mark

Mark D. Walter
Senior Programmer/Analyst
CCX, Inc.
mwalter@xxxxxxxxxx
http://www.ccxinc.com


                                                                           
             "Bob Cozzi"                                                   
             <cozzi@xxxxxxxxx>                                             
             Sent by:                                                   To 
             rpg400-l-bounces@         <RPGIV@xxxxxxxxxxxxxxx>, "'RPG      
             midrange.com              programming on the AS400 /          
                                       iSeries'" <rpg400-l@xxxxxxxxxxxx>   
                                                                        cc 
             01/28/2005 12:47                                              
             PM                                                    Subject 
                                       Why RPG IV Sucks                    
                                                                           
             Please respond to                                             
              RPG programming                                              
              on the AS400 /                                               
                  iSeries                                                  
             <rpg400-l@midrang                                             
                  e.com>                                                   
                                                                           
                                                                           




Okay maybe I'm a bit cranky.

Scenario:

DSPF DDS contains  a date field with DATFMT(*MDY)

Compiled RPG IV that uses that display file is called.
Write to the display file with that date field, BOOM!
Why?
Because the RPG IV converts the date from the display file into *ISO within
the program.
RPG IV also initializes date fields in *ISO format to D'0001-01-01'
This date however is NOT valid for *MDY so I end up wth:
RNQ0114 -  Message . . . . :   The year portion of a Date or Timestamp
value
is not in the correct range (C G D F).

-Bob


--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



-- 
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.