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.

-- 
 Gilbert Saint-Flour
 GSF Software
 http://gsf-soft.com/

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