Hi I'm getting SOC7 error (protection exception) while expediting a Cobol - DB2 module while the same program ends fine when its run out of expeditor.
My driver module MAINCOB calls a subprogram dynamically which has DB2 components. But the MAINCOB doesn't have any DB2 related components. The moment control reaches the subprogram, it is throwing me the S0C7 (protection exception).
I have the compiler listing of MAINCOB. But I'm not compiling the subprogram as I'm not intercepting it. Please advise if I'm missing some steps that needs to be included while working with DB2 components.
Could anyone help me out to come out of this? Thanks in advance.