Hello,
Is LINE number in the COBOL source for the program possibly embedded in one of the fields the dfheiblk that the translator adds in to the program?
000651 01 dfheiblk.
000652 02 eibtime comp-3 pic s9(7).
000653 02 eibdate comp-3 pic s9(7).
000654 02 eibtrnid pic x(4).
000655 02 eibtaskn comp-3 pic s9(7).
000656 02 eibtrmid pic x(4).
000657 02 dfheigdi comp-5 pic s9(4).
000658 02 eibcposn comp-5 pic s9(4).
000659 02 eibcalen comp-5 pic s9(4).
000660 02 eibaid pic x(1).
000661 02 eibfn pic x(2).
000662 02 eibrcode pic x(6).
000663 02 eibds pic x(8).
000664 02 eibreqid pic x(8).
000665 02 eibrsrce pic x(8).
000666 02 eibsync pic x(1).
000667 02 eibfree pic x(1).
000668 02 eibrecv pic x(1).
000669 02 eibfil01 pic x(1).
000670 02 eibatt pic x(1).
000671 02 eibeoc pic x(1).
000672 02 eibfmh pic x(1).
000673 02 eibcompl pic x(1).
000674 02 eibsig pic x(1).
000675 02 eibconf pic x(1).
000676 02 eiberr pic x(1).
000677 02 eiberrcd pic x(4).
000678 02 eibsynrb pic x(1).
000679 02 eibnodat pic x(1).
000680 02 eibresp comp-5 pic s9(8).
000681 02 eibresp2 comp-5 pic s9(8).
000682 02 eibrldbk pic x(1).
Regards,
Gregory Oakes
Professor
Faculty of Science, Engineering and Information Technology
Durham College
[cid:
image002.jpg@01D8A2A0.BD7F1900]
________________________________
This message is intended only for the named recipients. This message may contain information that is confidential or exempt from disclosure under applicable law. Any dissemination or copying of this message by anyone other than a named recipient is strictly prohibited. If you are not a named recipient or an employee or agent responsible for delivering this message to a named recipient, please notify us immediately, and permanently destroy this message and any copies you may have. Warning: Email may not be secure unless properly encrypted.
Original Message:
Sent: 4/20/2023 8:37:00 AM
From: Andy Clifton
Subject: RE: CICS CEDF displays line number from program during trace process
Hi Gregory,
It is put in there but the translator and I think imbedded in the call to CICS but whether we document that I am not sure.
I looked at the job log of a translate and compile of a C program and the translator reports this line:
00005800 EXEC CICS ADDRESS EIB(dfheiptr) COMMAREA(&rexx_data);
and the compiler reported the translator produced line :
116 | /* EXEC CICS ADDRESS EIB(dfheiptr) COMMAREA(&rexx_data) */ | 2667
117 | { | 2668
118 | DFHEXEC("\x02\x02\xC0\x00\x2F\x05\x06\x00\x00\x00\x00\x00\x00\x00\x00\\ | 2669
119 |x00\x00\x00\x00\x00\x00\x00\xF0\xF0\xF0\xF0\xF5\xF8\xF0\xF0",&dfheiptr,\ | 2670
120 1 |&rexx_data); | 2671
121 | } | 2672
so I am pretty certain the end of the first argument passed to CICS is the line number. Sadly without using an exit to access the data when CICS is called I do not think it is easily available.
Would be a good candidate for an idea though -
https://ideas.ibm.com/new-idea
------------------------------
Andy Clifton
------------------------------
Original Message:
Sent: Wed April 19, 2023 09:14 AM
From: Gregory Oakes
Subject: CICS CEDF displays line number from program during trace process
Hello,
Where does CICS CEDF function get program line number from in order to display it on screen?
It would be useful in messages during Error or ABEND handling,
but I cannot find where it is returned.
Any suggestions?
Regards,
Gregory Oakes
Professor
Faculty of Science, Engineering and Information Technology
Durham College
[cid:image002.jpg@01D8A2A0.BD7F1900]
________________________________
This message is intended only for the named recipients. This message may contain information that is confidential or exempt from disclosure under applicable law. Any dissemination or copying of this message by anyone other than a named recipient is strictly prohibited. If you are not a named recipient or an employee or agent responsible for delivering this message to a named recipient, please notify us immediately, and permanently destroy this message and any copies you may have. Warning: Email may not be secure unless properly encrypted.