Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need to resolve SOC7 abend.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Wed Sep 30, 2009 6:43 pm    Post subject: Need to resolve SOC7 abend.
Reply with quote

Hi all,

I am getting a SOC7 abend while i submit my job.

Please find below the abend info.

The system detected a data exception (System Completion Code=0C7).
From compile unit XXXXXXX at entry point XXXXXXX at compile unit offset +00002 at address 0023450.

Address Name Prog Name EPA Load Len

00023450 pgmname 00002E08 pgmname 00002E08 00002E08 6

Instruction
F912 D308 D310
CP - compare decimal


Please let me know how to trace which line in the pgm is causing an abend.

Pls note: I am doing the below operation

. . . .
10 LK-HOLID-OCCURS PIC 9(04).

01 WS-HOLID-OCCURS PIC S9(04) COMP.
. . . .
MOVE WS-HOLID-OCCURS TO LK-HOLID-OCCURS




Thanks,
Mukesh.
Back to top
View user's profile Send private message

Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Wed Sep 30, 2009 7:13 pm    Post subject:
Reply with quote

Some more info :

A Data Exception is caused when a computational-3 field has
an invalid digit (not 0-9), or its last byte contains an invalid
sign (not A, B, C, D, E, or F).
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Sep 30, 2009 7:18 pm    Post subject:
Reply with quote

Please search the Forum on S0C7 -- you'll get more than enough to start with.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Sep 30, 2009 7:35 pm    Post subject:
Reply with quote

Since you are apparently using COBOL from the code snippet you posted, recompile the program with LIST,NOOFFSET to generate as part of the compile output a pseudo-assembler listing of how the compiler translates each line of COBOL. This includes the offsets for each line of code; you can use the dump output to determine which line of code has the problem and proceed to resolve it.

Quote:
Pls not : I am doing the below operation

. . . .
10 LK-HOLID-OCCURS PIC 9(04).

01 WS-HOLID-OCCURS PIC S9(04) COMP.
. . . .
MOVE WS-HOLID-OCCURS TO LK-HOLID-OCCURS
All of this is completely and totally irrelevant to your problem. Neither of these fields is likely to be involved in your problem since neither is a packed decimal field. The WS-HOLID-OCCURS would be unpacked as part of the process but the CP is not used.

Your CP instruction is comparing a 2-byte field to a 3-byte field, based on the layout of the instruction. So you need to do more investigating.
Back to top
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Wed Sep 30, 2009 8:27 pm    Post subject:
Reply with quote

whether xped will be a better option..
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Sep 30, 2009 8:49 pm    Post subject:
Reply with quote

Mukesh, Xpediter is a product that must be purchased from Compuware and then installed. It certainly is not available at all sites. If it is available at your site, you could use it for debugging your S0C7 -- but the specifics on how to do this are different at each site, so you must contact your coworkers, team leader, or site support group to get information about how to use it on your site.

And if you were wanting information about using Xpediter to debug your code, wouldn't it have made sense to mention that in your original post?
Back to top
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Wed Sep 30, 2009 9:29 pm    Post subject:
Reply with quote

Robert,

Sorry to say my expectation is not to learn basics of exped since i am exposed to it very well.

i dint ask for info of exped since i know exped.. but my pgm is called by other pgm and linkage data is involved hence i wanted to explore soc7 in the called pgm where enhancement is made.

also soc7 may be due to many reason for which i am analysing the cause and need help from this forum.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Wed Sep 30, 2009 9:56 pm    Post subject:
Reply with quote

Hello,

Quote:
i am analysing the cause and need help from this forum
Please clarify how we might help. . . icon_confused.gif

If the 0c7 happens n the called module, what will you explore in the calling module? Once the problem data is identified in the called module, you could look at what creates this value in the calling module (if it is created there).
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Sep 30, 2009 11:25 pm    Post subject:
Reply with quote

Quote:
also soc7 may be due to many reason for which i am analysing the cause and need help from this forum.
Actually, not totally true. There are USAGE DISPLAY and USAGE COMP-3 numeric variables that can get S0C7 abends -- nothing else will. And these abends are caused -- always -- because there is non-numeric data in one (or more) bytes of the variable.

Finding the statement that caused the problem is the first step -- use the offset of the problem listing and the compiler output to determine which line of code has the problem. This is true for calling programs, called programs, and anything else. Once you know the statement with the problem, look at the variables involved and figure out which one has non-numeric data (usually easily determined from the dump). The hard part of the process is figuring out why the variable has non-numeric data (possible reasons include reading the data from a file, table overflow, incorrect alignment of calling arguments and called parameters, moving a bad value to a REDEFINED variable, among others).
Back to top
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Thu Oct 01, 2009 8:01 am    Post subject:
Reply with quote

Thanks Robert , Dick and Anuj. i will let you all know the root cause once this issue is resolved today. i am working on this.


Thanks and Regards,
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Oct 01, 2009 7:59 pm    Post subject: Reply to: Need to resolve SOC7 abend.
Reply with quote

Good luck - someone will be here if there are questions icon_smile.gif

d
Back to top
View user's profile Send private message
rakeshdsire4u

New User


Joined: 26 May 2009
Posts: 11
Location: Bangalore

PostPosted: Wed Oct 07, 2009 11:26 am    Post subject:
Reply with quote

Hi Mukesh,

if you know or using dumpmstr you can find the exact line or the logic which cause the SOC7. for this compile the program with listing option and find the offset value a hexadecimal value in the listing. take this value and find in the dumpmstr you will get the location where r you getting the soc7.
Back to top
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Mon Oct 19, 2009 11:25 am    Post subject:
Reply with quote

Thanks all.. that abend is resolved..... icon_smile.gif
Back to top
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Mon Jan 11, 2010 2:22 pm    Post subject:
Reply with quote

hi moderators,

Can anyone please delete this thread.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Jan 11, 2010 2:36 pm    Post subject:
Reply with quote

Mukesh Pandey wrote:
Can anyone please delete this thread.
Why, what happend, all of sudden, after 3 months? People (who should not see this thread) have already been through this thread... icon_lol.gif
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1238
Location: Richfield, MN, USA

PostPosted: Mon Jan 11, 2010 7:40 pm    Post subject:
Reply with quote

Mukesh, please share your solution for the benefit of others. Also, that is why threads should be left here even after an answer has been found -- to benefit others who may have the same type of problem.
Back to top
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Tue Jan 12, 2010 9:56 am    Post subject: Reply to: Need to resolve SOC7 abend.
Reply with quote

Anuj. i have used dump of my project data.. hence i request you to please delete this thread. hope you understand.


Moderators. i request you to please delete this thread.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Tue Jan 12, 2010 8:30 pm    Post subject:
Reply with quote

Hello,

Quote:
hope you understand
No, i surely do not understand. . .

I see nothing even remotely "proprietary" posted. . .

Why would you want this deleted? It might help someone in a similar situation sometime..

One of the best things about the forum is the number of situations that have been resolved that are available for search or review.

This is not like a paid-for support system where responses are "protected".
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Jan 12, 2010 8:37 pm    Post subject:
Reply with quote

Hi Dick,

There was program-name posted in the very first post of this thread, which was bothering him. I have just encrypted those details now, (I believe I've done it correctly) and sent him a note. Hope, he should be fine with the thread now.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts S213-14 ABEND explantion Apurva Mehta JCL & VSAM 5 Thu Jul 07, 2016 10:56 pm
No new posts How to resolve IMS DB status code FM Priyanka Boga IMS DB/DC 3 Fri Jun 10, 2016 1:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us