I would suggest you not look in your RPG for the issue, but it is telling that
a. vendor code is writing the file - I don't know all the possible ways someone could convert a file (rpg, java, C, aix, etc) and how would close down resources
b. this stmt - . The next debug step we did was to have the main CL that
runs at night CALL the RPG app and then also do a SBMJOB to call the same RPG app.
When run from the main CL with a CALL it read nothing. 2 minutes later
when it was submitted it ran fine and read thousands of records.

If I read that right - whether it's an override occurring in the vendor code (your stmt of "no overrides" I assume is only about your code..picture an override to a temp version in a work lib or QTEMP..which might exist in that job stack) or some issue with the closing of the file from the vendor code - the fact that a new submitted job did see the records (it has to open a new path to the file..pardon if my terminology not correct).

In this test with the submit job that was successful, was the submit in the clp that also ran the vendor code and the RPG?

I have seen issues with vendor code (several..) that caused issues downstream and try always to isolate their execution from main job stream. A simple test is write a new clp to run the file conversion (any parms needed?) . Call the new clp from the original, and when it has ended, there would hopefully not be any overrides or open data paths.. To isolate by jobs (if familiar with data queues - you could submit the job to transform the file to a job queue and monitor a data queue for completion).

Let us know when the mystery is solved.

Jim Franz


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Cunningham
Sent: Thursday, October 05, 2017 9:15 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: RE: We have a mystery

The file being read is temporary and not be journaled. It gets cleared every day to receive the next download from the external system. The RPG uses SQL with not commitment control

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Evan Harris
Sent: Thursday, October 5, 2017 6:18 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: We have a mystery

Hi Mike

how long beforehand does the process that generates the records run and what happens in between ? I am assuming there is a commit taking place befor eyou are tryign to get th records with the program experiencing errors.

is the file being journalled and does the add entry in the journal have a timestamp before or after the schedueld program ran ?

Another thing to check that I seem to recall happening way back in the past was a programmer makign changes to the FRCRATIO parameter on a file that exhibited similar symptoms; maybe that is something to look at (this is more of a SWAG)

On Fri, Oct 6, 2017 at 5:45 AM, Mike Cunningham <mike.cunningham@xxxxxxx>
wrote:

We have an RPG with embedded SQL program running in a CL program that
has calls to multiple RPG programs. This CL is run from the job
scheduler late at night. We were having issues with this night job
that looked like it was not running the one RPG app but when run
during the day by itself it would work perfect. So we added a trace to
the program to see what it was doing at night. It showed that no data was being read from the SQL fetch command.
When it was run by itself during the day it showed it read thousands
of records. The next debug step we did was to have the main CL that
runs at night CALL the RPG app and then also do a SBMJOB to call the same RPG app.
When run from the main CL with a CALL it read nothing. 2 minutes later
when it was submitted it ran fine and read thousands of records.

We are stumped. Has anyone ever seen this happen before? There are no
overrides or explicit sharing of open data paths.

Mike Cunningham

________________________________
This email may contain confidential information about a Pennsylvania
College of Technology student. It is intended solely for the use of
the recipient. This email may contain information that is considered
an "educational record" subject to the protections of the Family
Educational Rights and Privacy Act Regulations. The regulations may be
found at 34 C.F.R. Part 99 for your reference. The recipient may only
use or disclose the information in accordance with the requirements of
the Federal Educational Rights and Privacy Act Regulations. If you
have received this transmission in error, please notify the sender
immediately and permanently delete the email.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD




--

Regards
Evan Harris
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD

________________________________
This email may contain confidential information about a Pennsylvania College of Technology student. It is intended solely for the use of the recipient. This email may contain information that is considered an “educational record” subject to the protections of the Family Educational Rights and Privacy Act Regulations. The regulations may be found at 34 C.F.R. Part 99 for your reference. The recipient may only use or disclose the information in accordance with the requirements of the Federal Educational Rights and Privacy Act Regulations. If you have received this transmission in error, please notify the sender immediately and permanently delete the email.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD


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.