IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to get a stack trace on a looping batch job


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
txgai1

New User


Joined: 01 Dec 2023
Posts: 3
Location: USA

PostPosted: Mon Dec 04, 2023 7:53 pm
Reply with quote

Hi,
I have a complex C/C++ program(s) that is looping in batch mode.
If I cancel with dump(CD), I get a dump but it is worthless. It does not have a stack trace.
The question is how can I get CEEDUMP or IPCS dump so I can get the stack trace. (I know how to get a stack trace from a IPCS dump)
With CD a SYSMDUMP and SYSUDUMP both produce a useless text dump.
I do not get a CEEDUMP.

I can set a slip but not really sure where to set it.

Thanks for any help.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2594
Location: Silicon Valley

PostPosted: Tue Dec 05, 2023 7:38 pm
Reply with quote

re: produce a useless text dump

I do not know what a text dump is. But sysmdump should produce a binary file that you can look at with IPCS. Your JCL should have a DD statement for SYSMDUMP output file.

If I were in this situation I would add my own trace control blocks where I would store my own breadcrumb information - the starting and stopping of various routines and the like.

And if the dump does not show your trace information, then also add print statements to your program.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2594
Location: Silicon Valley

PostPosted: Tue Dec 05, 2023 7:39 pm
Reply with quote

re: "that is looping in batch mode"

Does that mean it is working successfully in a different mode? Please explain.
Back to top
View user's profile Send private message
txgai1

New User


Joined: 01 Dec 2023
Posts: 3
Location: USA

PostPosted: Wed Dec 06, 2023 1:52 am
Reply with quote

SYSMDUMP did work.
Thanks you
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 592
Location: London

PostPosted: Wed Dec 06, 2023 12:48 pm
Reply with quote

Maybe a GFT trace or SLIP trap?
Back to top
View user's profile Send private message
txgai1

New User


Joined: 01 Dec 2023
Posts: 3
Location: USA

PostPosted: Wed Dec 06, 2023 4:26 pm
Reply with quote

SYSMDUMP gave me a dump in IPCS format that I can use to get a stack trace.
Thanks you.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts MacKinney Batch to CICS upgrade causi... CICS 7
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Excuting store procedure via JCL batch JCL & VSAM 1
No new posts SORT on detail record, then repeat he... DFSORT/ICETOOL 3
No new posts batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
Search our Forums:

Back to Top