i have a cics-cobol-db2 as a main program. My main program is calling a subprogram which is a cobol-db2 program. can i use link/xctl for the subprogram though it doesn't have any cics statements in it. when i m using 'call' for the subprogram i m getting 4038 abend. plz help.
Fortunately, there is a place to find exactly what caused a 4038 abend. Just look at where ever you have the CESE transient data queue pointing (a lot of shops have it pointing to SYSOUT, so you may have to browse CICS output in SDSF or similar product). There will be a message that pretty much spells out the cause of the abend (in most cases, it is something simple, like a resource not defined).