Difference between Static and Dynamic Call in IBM Mainframes


Static Call                                                                     Dynamic Call

1. Call to the sub program is                         1. Call to the subprogram is                                  
    done at the time of compilation                   done at the time of execution
2.  It uses more CPU time                            2. It uses less CPU time
3. Requires more memory                            3. Requires less memory
4. Submodules are link edited with the        4. If the sub program undergoes
    main module, if the subprogram                  any changes it is sufficient to 
    undergoes anychanges both the                   recompile the sub program 
    main and sub program                                 alone
    needs to be re-compiled
5. Static Call improves performance            5. Dynamic Call degrades performance           
    of the module                                                of the module
6. If the modules is being called                 6. If the module is called dynamically it will be 
    statically  it will be seen in the                 seen in the main module
     load module
7. The program is compiled with                   7. The program is compiled with 
    NODYNAM option                                       DYNAM option