Midrange News for the IBM i Community

Posted by: Chris Proctor
Programmer Analyst
Columbia Sports Company
Portland, OR
READE reading other than expected?
has no ratings.
Published: 18 Dec 2012
Revised: 23 Jan 2013 - 2246 days ago
Last viewed on: 19 Mar 2019 (4164 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

READE reading other than expected? Published by: Chris Proctor on 18 Dec 2012 view comments(18)

Good morning. I have a weird issue that has me stumped. I've got 4 identical NEPs that each process a brand of clothing. The only difference in all 4 jobs is the brand parameter being passed to the program.

Now, it appears that one of the programs is running just fine, but the other 3 appear to be attempting to read a record that is not associated with the brand it should be reading. The program performs a SETLL(E) on the driver file for the brand and also does a READ(E) for the brand it's supposed to be processing, but what I'm seeing in the joblogs look like this:


RECORD 1150157 IN USE BY JOB 612341/ROBOTJDE/J78000UP.




The above jobs are 2 of the other NEPs that are processing the other brands. The only reason the programs aren't completely locking up is because of the (E) on the  READE, they're just being passed over.

Anyway, there appears to be a performance issue with these processes and I've just never seen where a record type not specified in the keylist would be read by the process. The driver file is constantly being updated as new orders come in, but I don't think that would affect the processing, would it?

If anyone has ever run into something like this I'd sure like to know how to correct it.


Return to midrangenews.com home page.
Sort Ascend | Descend