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



Hi Douglas,

Before you go to lengthy effort to multi-thread the job, consider posting
the SQL here for optimization.

Is the SQL set oriented, or single row at a time oriented?

If the SQL is single row at a time oriented (or close to it), converting it
to set based processing will most likely shave off most of that run time.

Mike

date: Wed, 1 Jun 2016 14:37:05 +0000
from: "Englander, Douglas" <Douglas_Englander@xxxxxxxxxxxxx>
subject: RPG and Threads


Does anyone have a simple program example (or know where I can find one)
for an RPG program that creates thread jobs? I am wanting to know if it is
possible for one RPG program (or CL) to start 4 or 5 threads, and each
thread would process one part of a file, instead of having one program
process the file from beginning to end. This is a read and summarize
application that is being converted to SQL, but even with SQL, it takes a
long (7+ hours) to process the whole file.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.