Skip to main content

Why is it neccesary to pass a Dummy Commarea when...

1 reply [Last post]
mvillarg
Offline
Joined: 2013-06-07

   

          I call (Dynamic Call) a Cobol Program passing data.

             CALL  MY-PROG USING DFHEIBLK DFHCOMMAREA  MY-WS-DATA

         I know the CICS PROGRAMMER GUIDE say this, but what is the reason.

        What can happend if I do  "CALL  MY-PROG USING MY-WS-DATA"

        in the precompiler I have NOSYSEIB NOLINKAGE  for the calling and the called program.

      Many thanks in advance.

     

 

 

 

 

pcs305
pcs305's picture
Offline
Joined: 2006-03-06
Re: Why is it neccesary to pass a Dummy Commarea when...

The COMMAREA is used to pass storage from program to program. WS is only available to currently running program.

Also consider using CHANNELS and CONTAINERS instead of the commearea. 

http://www.redbooks.ibm.com/redbooks/pdfs/sg247227.pdf