On Mon, 6 Nov 2006 09:57:40 -0500, Gilbert Saint-Flour 
<[EMAIL PROTECTED]> wrote:

>Chris Phinicarides wrote:
>
>> I need to have a batch RPG program (say A) call another batch RPG program
>> (say B) and be able to change program B and have program A execute
>> using the modified program B, without the need to re-compile/link-edit
>> program A.
>>
>> More specifically, the need is to have a common program, Y say, which 
will
>> need to be modified at some later stage. A considerable number of
>> programs, X1, X2, X3, ..., Xn, say, call program Y.
>> When program Y changes, I do not want to deal with re-compiling
>> (or link-editing) programs X1, X2, X3, ..., Xn.
>> Their execution should transparently use the modified program Y.
>
>RPG has no capability to dynamically CALL sub-programs.
>A frequently-used work-around is to use an in-between assembler module 
which
>LOADs the sub-program the first-time it's invoked, then CALLs it.
>
>Note that in MVS, RPG sub-programs only have access to DATE and UPSI when 
they
>are part of the main program's load module.
>
Maybe always link and execute, picking up the new version in the
link edit step before running.

-- 
Tom Marchant

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to