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

Need to resolve SOC7 abend.


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
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
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
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

Superior Member


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

PostPosted: Wed Sep 30, 2009 7:18 pm
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: 8700
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 30, 2009 7:35 pm
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
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: 8700
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 30, 2009 8:49 pm
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
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

Moderator Emeritus


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

PostPosted: Wed Sep 30, 2009 9:56 pm
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: 8700
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 30, 2009 11:25 pm
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
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

Moderator Emeritus


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

PostPosted: Thu Oct 01, 2009 7:59 pm
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
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
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
Reply with quote

hi moderators,

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

Superior Member


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

PostPosted: Mon Jan 11, 2010 2:36 pm
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: 1248
Location: Richfield, MN, USA

PostPosted: Mon Jan 11, 2010 7:40 pm
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
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

Moderator Emeritus


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

PostPosted: Tue Jan 12, 2010 8:30 pm
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

Superior Member


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

PostPosted: Tue Jan 12, 2010 8:37 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts ABEND 0717 during starting IMS IMS DB/DC 0
No new posts Call an hlasm from REXX in batch and ... CLIST & REXX 4
No new posts What is the most complex abend you've... Mainframe Interview Questions 8
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Need help to resolve a hard edit COBOL Programming 8
Search our Forums:

Back to Top