Can anyone please share a CICS (COBOL) wrapper program example for a zOS connect. I am have to use DEPENDING CLAUSE for the same. So far I am new to zOS thing. I have to use channels and containers.
Example if any please.
Can anyone please share a CICS (COBOL) wrapper program example for a zOS connect. I am have to use DEPENDING CLAUSE for the same. So far I am new to zOS thing. I have to use channels and containers.
Example if any please.
Are you sure you need a wrapper program? The tooling for z/OS Connect supports Occurs Depending On as long as the object (the field containing the number of occurrances) is in the same structure as the variably occurring field.
For example, z/OS Connect supports this:
01 My-structure.
   03 Some-data              pic x(13).
   03 Data-count             pic s9(4) comp.
   03 Lots-of-data           pic x(20)
         occurs 1 to 6 times 
         depending on Data-count.
But if "Data-count" is not defined within "My-structure", it is not supported.
See my next answer on a technique to handle occurs depending on if your copybooks are not structured the way that z/OS Connect supports.