Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to solve soc7 abend?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
gvt460

New User


Joined: 04 Mar 2005
Posts: 23

PostPosted: Wed May 04, 2005 4:46 pm    Post subject: how to solve soc7 abend?
Reply with quote

haii
i like to know how to solve the soc7 abend.
let me know correct solutions.
Back to top
View user's profile Send private message

kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Wed May 04, 2005 5:18 pm    Post subject:
Reply with quote

OC7 comes due to bad data...check the data which it is holding, at the point of abend...i mean check due to which variable OC7 is happening, then try to find out why wrong data is comming into picture.If it is comming from database then check the database or if due to any logical problem like a varibale is initialized with low values and then it is trying to move low values in data level other than 01.etc...
Back to top
View user's profile Send private message
gvt460

New User


Joined: 04 Mar 2005
Posts: 23

PostPosted: Wed May 04, 2005 5:31 pm    Post subject: how to slove it?
Reply with quote

i know that one.i want to know how to solve soc7?
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Wed May 04, 2005 5:37 pm    Post subject:
Reply with quote

so if you know this just try out to find out what is going wrong and correct it...check the dumps, errol listing, they will give you all details where and why it is abending.
Back to top
View user's profile Send private message
guru.p

New User


Joined: 03 May 2005
Posts: 11
Location: Bangalore

PostPosted: Thu May 05, 2005 10:18 am    Post subject:
Reply with quote

In the case of S0C7 how to read hexdump and catch the bad record?
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Thu May 05, 2005 10:53 am    Post subject:
Reply with quote

if you give a clooser look on abend aid produced, i think you will get every thing...like which statement is producing the abend.apart from that you can produce some of the information from program, like when ever you entering just have variable to keep the value of para name , then while calling abend routine...dispay those variable.
and in abend aid they give which staement is next that is gonna to be executed after this and which was the last staement executed. Once you get the varible, just try to find from where it is getting value on what condition...so you can get the required detail...
as reading hexdump is bit tough as everything there is mentioned in terms of general purpose register value and tracking that will be bit difficult as i think...probably you can make it out..it will give in terms of offset and value in PSW and all...so just try to get details from from abendaid only.
let me know if you have any better idea for that...
Back to top
View user's profile Send private message
sararaju

New User


Joined: 04 May 2005
Posts: 25

PostPosted: Fri May 06, 2005 4:54 pm    Post subject: Re: how to solve soc7 abend?
Reply with quote

soc7 basically non-numeric value added with numeric computation functions. when it comes to your program just using quick window or aben-aid tools(it will be differ from org to org) u have to find out the offset value correspondingly. Then u can findout the line number easily. Goto the line and find the problem and fix it now execute without error. I think this is the best way .i hope so.


Regards,
sara
Back to top
View user's profile Send private message
ursjohn

New User


Joined: 25 Apr 2005
Posts: 5
Location: india

PostPosted: Fri May 06, 2005 4:59 pm    Post subject:
Reply with quote

DATA EXCEPTION - DECIMAL DATA IS INCORRECT OR IMPROPERLY OVERLAPPED OR NOT VALIDLY INITIALIZED. --POSSIBLE CAUSE-- SUBSCRIPT ERROR, REFERENCED BEYOND TABLE COBOL - WORKING STORAGE NOT INITIALIZED - BAD DATA, SHOULD CHECK DATA FOR ERRORS - GARBAGE IN A FIELD BEING TESTED OR DISPLAYED - MOVE ZEROES TO GROUP LEVEL IS DISPLAY, HAD SUBLEVELS THAT WERE NOT - PERIOD MISSING AFTER IMPERATIVE STATEMENTS WITHIN AT END CLAUSE - BINARY FIELD IN AN ARITHMETIC OPERATION IS NOT LARGE ENOUGH TO ACCEPT RESULT (FOR MORE INFORMATION, SEE DESCRIPTION OF S0C1)
Back to top
View user's profile Send private message
ankyhunk

Moderator


Joined: 05 May 2005
Posts: 98
Location: Navi Mumbai, India

PostPosted: Fri May 06, 2005 5:16 pm    Post subject: Re: how to solve soc7 abend?
Reply with quote

As we are already aware, the S0C7 abend takes place whenever a bad data is passed to a variable (i.e. non-numeric data passed to a numeric variable), I would like to elaborate on the solution.
Whenever a job abends in prod, we can copy the i/p files to pdev. Then we should make a sample jcl of the steps where the job abended and the related ones (usually the previous IEFBR14 step). Now you can copy the program to override & put display statements for displaying the record & the record no (X001-TOTAL (1 1 1)) before the statement where its abending. The error record is displayed in the sysout.
After knowing the problem record, we can take the backup of the i/p file & delete it from the file. If the file is huge browse is substituted in place of edit. Then we can use IDCAMS utility or FILE-AID.
Back to top
View user's profile Send private message
krisharch

New User


Joined: 22 Sep 2008
Posts: 1
Location: MUMBAI

PostPosted: Fri Oct 31, 2008 8:19 pm    Post subject:
Reply with quote

icon_lol.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Fri Oct 31, 2008 11:28 pm    Post subject:
Reply with quote

Hello,

Why are You "laughing out loudly" in your very first post ?

-Ad
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts C03 ABEND sjiraga PL/I & Assembler 1 Thu Jun 01, 2017 4:51 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us