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

Reading a dump


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

New User


Joined: 04 Oct 2008
Posts: 8
Location: Cuernavaca Morelos Mexico

PostPosted: Thu Aug 26, 2010 8:25 am
Reply with quote

I've found material about locating the address of the instruction that causes the abend using compiling options TEST, OFFSET and LIST, but i need to to know how to get a WORKING-STORAGE DUMP and how to find the variables and its values asociated with the instruction that abends

JP, from Mexico
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 26, 2010 8:58 am
Reply with quote

Hello,

When the abend occurs, typically a dump will be taken for the program that is running. This will include the working-storage dump.

Suggest you talk with your support people and learn which tools might be available on your system. On several systems i've worked on there is a way to take a dump of only part of the working-storage - say before and after some code that is suspect. . .
Back to top
View user's profile Send private message
jptools

New User


Joined: 04 Oct 2008
Posts: 8
Location: Cuernavaca Morelos Mexico

PostPosted: Thu Aug 26, 2010 9:19 am
Reply with quote

i'll try the solution, thanks anyway

Working-Storage missing from dump of abending Enterprise COBOL program


Technote (troubleshooting)

Problem(Abstract)

You are using Enterprise COBOL and Language Environment (LE) for your application programs in your CICS Transaction Server region. You receive a LE dump for an abend in the CESE destination CEEMSG, but this dump does not include the Working-Storage section. In this case, you are receiving the dump for an abend 4038 due to subscript out of range.
Cause

The Working-Storage section is not included in the dump because Enterprise COBOL does not use the VS COBOL II FDUMP option.

The abend U4038 indicates that LE has encountered a software-raised or user-raised unhandled condition of severity 2 or greater and will terminate. If the TERMTHDACT run-time option is set appropriately, a Language Environment dump (CEEDUMP) will be generated.

Resolving the problem

Use the Enterprise COBOL compiler option TEST(NOHOOK) to list the Working-Storage and Linkage Section in the LE dump in the CEEMSG queue.
Back to top
View user's profile Send private message
jptools

New User


Joined: 04 Oct 2008
Posts: 8
Location: Cuernavaca Morelos Mexico

PostPosted: Fri Aug 27, 2010 3:45 am
Reply with quote

COBOL – Dump-Analyse im z/OS
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 27, 2010 5:39 am
Reply with quote

Hello,

Are you asking for something or presenting some informaton for others to use?

It is best to post complete sentences whether questions or statements. . .
Back to top
View user's profile Send private message
jptools

New User


Joined: 04 Oct 2008
Posts: 8
Location: Cuernavaca Morelos Mexico

PostPosted: Fri Aug 27, 2010 8:24 am
Reply with quote

Sorry:

I'm presenting some information for others to use, about COBOL DUMPs

You have to search for "COBOL – Dump-Analyse im z/OS" on internet, it is a PDF in German , i think very good, just apply a translator to it and you will see a usefull tool.

By the way, i need the steps to get a complete WORKING-STORAGE DUMP

Thanks

JP, Mexico
Back to top
View user's profile Send private message
jptools

New User


Joined: 04 Oct 2008
Posts: 8
Location: Cuernavaca Morelos Mexico

PostPosted: Thu Sep 02, 2010 3:23 am
Reply with quote

Dick, you said:

"On several systems i've worked on there is a way to take a dump of only part of the working-storage - say before and after some code that is suspect"

Could you tell me more about it? May be a have the tools i need. (An IBM manual?)

Thanks

JP
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Sep 02, 2010 8:59 am
Reply with quote

Hello,

As i recall, there was a callable subroutine that was called with a ws label and a length:
CALL 'thecode' USING WS-LABEL LENGTH-TO-DUMP.

Say there was an array that was 1000 bytes long, this routine could be called before and after loading the array to verify the contents. Doing this reduced the amount of dump info to look thru. . .

There were similar implementations on quite a few systems i worked on. Possibly there is such a module on your system. . .

You might also look here for info on how you might create your own:
publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?

Scroll down to MVS and expand this list. Then expand the Diagnostic Tools and Service Aids and read about SNAP Dumps.
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 Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Rexx program reading a DSN then write... CLIST & REXX 4
No new posts Reading subsequent rows in a query. DB2 12
No new posts Printing a dataset in DUMP format wit... ABENDS & Debugging 2
Search our Forums:

Back to Top