in static call :
for eg if u r calling a program (progB) from a main program (progA)
1)u have to code procedure divsion in the main progaram as below:
call 'progb' using varaibles. Here we r directly hardcoding the progarm name in the quotations .
2)in the linkedit step we have to link the object module of the mainprogram(progA) with the object moduleof the called program(progbB),it produces the one load module.
in dynamic call:
1)in the working storage section u have to define a variableas below:
01 ws-var1 picx(4)
u have to code procedure divsion in the main progaram as below:
move 'progb' to ws-var1
call ws-var1 using varaibles
2) here u have seperate load modules for mainprog&subprog
let me know if u have any queries