Hi there, not so sure where to post this topic.
My problem is the length of dfhcommarea become 0 before xctl from Y to Z. Although the length of dfhcommarea from A to Y is ok.
let say A-is main prog(C language), Y & Z are cobol.
A - c program
EXEC CICS ADDRESS EIB(dfheiptr) COMMAREA(pCom_Ptr);
EXEC CICS HANDLE ABEND PROGRAM("JQABCVEH");
iLen = sizeof(pCom_Ptr->message_data);
EXEC CICS XCTL PROGRAM("Y")
LENGTH(stcom) <---- managed to get length correctly
Y - Cobol
do some sql works to prepare data to insert in message-data.
EXEC CICS XCTL PROGRAM("Z")
LENGTH(length of(DFHCOMMAREA) <---- length become 0
already surf the net but can't found any solution similar with my problem. already try to trace in cics managed to see the message-data. can anyone give me some helps/ideas. 1 more things do i need to use this command in cobol EXEC CICS ADDRESS EIB(dfheiptr) COMMAREA(DFHCOMMAREA) after procedure divison to get the length or address or the data.
Thanking you in advanced for any helps