|
Sorry, that was a bit vague wasn't it... The file is read from the beginning each time. What I did not mention is that the first job deletes the file reference 1 records and reorganises the files before the second job runs. I have run the program which deletes the file reference 1 records interactively and it definitely deletes only its own records. The problem is that when run in batch it appears to be deleting the preceding file reference 2 records as well. Given that the file is reorganised before the second job runs, I think that can be the only explanation. If anyone has any ideas, I will be grateful as I am at a bit of an impasse. Cheers Martin -----Original Message----- From: Scott Mildenberger [mailto:scottmildenberger@xxxxxxxxx] Sent: 21 March 2003 19:55 To: RPG programming on the AS400 / iSeries Subject: Re: File processing problem It is really hard to tell without seeing the code but my guess it is how the file is being positioned/read. I assume it isn't reading every record in the file. The program probably assumes all 2's are after the 1's or something like that. I would look at how the file is being positioned/read carefully. Scott Mildenberger --- "Saunders, Martin P" <martin.saunders@xxxxxxxx> wrote: > The translated EDI data sometimes looks something > like this: > > Key field File reference > 5 2 > 6 2 > 7 2 > 8 1 > 9 1 > 10 2 > 11 2 > > > The problem is that when this scenario occurs, the > job to process file > reference 1 is fine but the job to process file > reference 2 which runs after > the first one completes only processes the records > with the key field values > greater than the first file reference (10 & 11). > __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com _______________________________________________ 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 message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message ". ********************************************************************************************
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.