QUESTION POSED ON: 26 March 2002
I want to have a COBOL subprogram called from either CICS
or batch environments. The subprogram has no CICS
commands in it and is simply a COBOL table lookup
routine. I passed the subprogram through the CICS
translator which inserted the DFHEIBLK and DFHCOMMAREA into
the program for me. This works fine when I call from
a CICS main program but I get an 0C4 abend when I call the
sibprogram from a batch COBOL main program.
I inserted dummy WS field in the batch main program to account for dfheiblk
and dfhcommarea so that the CALL prog USING dfheiblk dfhcommare parm1
would referr to the proper areas in the called sub. Am I doing something wrong?
|