View previous topic :: View next topic
|
Author |
Message |
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
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 |
|
|
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Please search the Forum on S0C7 -- you'll get more than enough to start with. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
whether xped will be a better option.. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
i am analysing the cause and need help from this forum |
Please clarify how we might help. . .
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Good luck - someone will be here if there are questions
d |
|
Back to top |
|
|
rakeshdsire4u
New User
Joined: 26 May 2009 Posts: 11 Location: Bangalore
|
|
|
|
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 |
|
|
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
Thanks all.. that abend is resolved..... |
|
Back to top |
|
|
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
hi moderators,
Can anyone please delete this thread. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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... |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1248 Location: Richfield, MN, USA
|
|
|
|
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 |
|
|
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
|