It's been a long time since I've done this, but this is what I remember:
(1) All CICS/COBOL programs need to be compiled with the NODYNAM option. This 
is a CICS requirement.
(2) Because of (1), a CALL 'MYPGM' statement will cause the subprogram to be 
statically linked with the calling program.  So if the RENT attributes are 
different for the two modules you will get S0C4 abends.
(3) A CALL WS-MY-PGM statement in a CICS/COBOL program is a DYNAMIC call, even 
when the NODYNAM option is in force.
(4) In order for (3) to work, the subroutine needs to be defined in a CSD 
PROGRAM entry (PPT for the old-timers).
(5) The dynamically called subroutine can be NORENT even when the caller is 
RENT.
(6) The dynamically called subroutine cannot make any requests that imply a 
WAIT, since that will halt the whole region.  And GETMAIN can interfere with 
CICS storage management as someone else mentioned.

John

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to