In our system we are using static calling, if I were to change this to dynamic calling what all changes would I need?
I can think of the following...
1. Calling subprograms program using identifier instead of literals
2. Compiling programs using DYNAM option instead of NODYNAM.
My question is would any changes be required in link members of programs?
Also since dynamic requires each module to have individual load, would a link be required for all the modules?
In static we have links code only for main programs.
You have pretty much hit the nail on the head.
i.e.:
move 'PGMNAME' to WS-PGM
CALL WS-PGM
w.r.t. linking. All programs that are going to be dynamically linked will still need to be link edited before being placed into the joblib/steplib library they are going to be loaded from. i.e. they will need to be linkedited as a main program.
this is not really my area of expertise so i do speak under correction here. Best bet is to try it out!