× 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.



Hi Jim
Just for clarification
When you say date field - is it truly a date field, or a numeric or character field that represents a date
If its the latter (a numeric or character field that represents a date) what format is it in
PLUS - if it's truly a date field, when you run SQL - what date format are you running under?
From the interactive sql sessions

Change Session Attributes
Date format . . . . . . . . . *MDY *JOB, *USA, *ISO, *EUR, *JIS
*MDY, *DMY, *YMD, *JUL
Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of James Newman, CDP
Sent: Wednesday, August 19, 2015 8:08 AM
To: RPG programming on the IBM i / System i
Subject: Problems with old data...really old data.

I have a program which reads FILE1, does some calculations, and writes the results to FILE2. The key on both files is the same - text field (10) and date field. FILE1 contains 24 million records. FILE1 is accessed via SQL, which selects all the data in the file, selects the fields desired, and orders the records coming into the program.

When I ran the program I would only get 5,979,168 records in FILE2. As I started to look more closely, the last record in FILE2 was at the same point each time - where a set of data begins that has data back to 1915.
The program was not issuing an error message.

To test my theory that the old data was the problem, I created a set of test data without the old data. The program ran as expected and completed processing all 24,000,000 records.

When I do STRSQL and select this old data, I've noticed that SQL shows "++++++++" for the date but I figured RPG knew how to handle these old dates. Apparently not.

What do I need to do so RPG can handle the old data? TIA.


Jim Newman
--
This is the RPG programming on the IBM i (AS/400 and 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.