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



The best alternative is to use a Read into a DS i.e. DS specified in the result field position. That avoids any explosions on the Read much the same ways as having the file program described would do.

If you then bracket individual field moves with a Monitor group you can not only report on the data but also fix it up if you want.


On 2013-12-03, at 5:26 PM, "Raul A. Jager W." <raul@xxxxxxxxxx> wrote:

I did not try it, but I think reading the file in RPG as "program
defined" will allow you to read, analize and delete if bad.

Booth Martin wrote:

In this instance the data is is only for stress testing. Losing a few
dozens of records won't impact what I am doing. and in a live situation
this same error would have already ground things to a halt.


On 12/3/2013 3:05 PM, Jon Paris wrote:


Many - but can you be a bot more specific? After all just deleting records is rarely a cure (or at least it is one where the cure can be as bad as the disease).

Definition of fields? How were the records created, etc. etc.


On 2013-12-03, at 3:52 PM, Booth Martin <booth@xxxxxxxxxxxx> wrote:



The file has about 2.5 million records. Some of those records, I have
no idea how many, give an error and my RPG program fails. Is there a
way to process the file and delete those troublesome records?

Cause . . . . . : The condition was caused by the program output data
containing below hex 40 ...
--
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.



Jon Paris

www.partner400.com
www.SystemiDeveloper.com









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


Jon Paris

www.partner400.com
www.SystemiDeveloper.com





As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.