• Subject: RE: OPNQRYF question :) -Reply
  • From: Scott Cornell <CORNELLS@xxxxxxxxxxxxxxx>
  • Date: Mon, 15 Dec 1997 09:01:01 -0500

>>> Tim Truax [SMTP:truax@usaor.net] wrote >>>
> Hi Folks:
> I have a CL program that first does an OPNQRYF of a file then
> loads a RPG program to produce a printout.  Is it possible that this
> OPNQRYF is still working and my RPG program is loaded while the
> OPNQRYF is still working? This appears to be happening to my job,
> but I thought the OPNQRYF would run to completion first, then
> load the RPG program that comes after?

Just a guess - RPG programs buffer file reads to improve
performance - look at the bottom of a compile listing and (unless you
do some tweaking to override the defaults) you'll see messages to the
effect of "RPG handles buffering of file XXXXXX" or some such. 
Could it be that way down deep, QQQQRY & RPG are actually
intelligently communicating with the system, with RPG saying "I need
100 records at a time" and QQQQRY saying "I'm processing 15346251
records, here's the 100".  So, OS/400 says "Well, I've got 100
records, may as well let RPG get started while QQQQRY continues to
do it's thing"

Just a guess

Scott Cornell
Mercy Information Systems
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 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].