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


  • Subject: Re: CallB, CallP --> Help
  • From: "R. Bruce Hoffman, Jr." <rbruceh@xxxxxxxxxxxxx>
  • Date: Tue, 11 Jul 2000 08:40:37 -0400

-----Original Message-----
From: Brian Stapleton <Brian.Stapleton@diverseylever.com>
To: rpg400-l@midrange.com <rpg400-l@midrange.com>
Date: Tuesday, July 11, 2000 7:59 AM
Subject: CallB, CallP --> Help


>Greetings All;
>I'm pretty green when it comes to this kind of stuff, so please be gentle.
>Here's the problem.
>Program #A will be processing about 200,000 records.  Based upon some of
the
>criteria in the record it may call program #B, which will in turn call
program
>#C twice.  Or, it may call program #D which in turn will call program #E
twice.
> (Costing stuff)
>I'm not familiar with CallB, and CallP, but I want to increase the speed of
the
>call's.  All programs are RPGLE.


It's a little hard to understand if you are actually asking a question...
but...

If it were me, I would prefer the callp as this instruction call call
anything as long as it is prototyped, which is what the p stands for.

If performance is the overriding requirement, and programs B, C, D and E are
not used by other processes, then compiling them as modules and binding them
by copy into the main program A would give the _best_ call performance.

On the other hand, the modules would then require rebuilding A whenever B,
C, D or E change.

If you are currently using a straight call from A, B and D, then compiling
the B, C, D, and E programs as modules, putting them in a service program,
binding the service program to A and calling them with the callp will speed
up the calls.

of course, leave LR off...

hope this helps
===========================================================
R. Bruce Hoffman, Jr.
 -- IBM Certified AS/400 Professional System Administrator
 -- IBM Certified AS/400 Professional Network Administrator
 -- IBM Certified Specialist - AS/400 Administrator
 -- IBM Certified Specialist - RPG IV Developer

"Those who would give up essential Liberty,
  to purchase a little temporary Safety,
  deserve neither Liberty nor Safety."

     - The Papers of Ben Franklin



+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.