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
 
Abend 0C7000

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

Active User


Joined: 19 Mar 2009
Posts: 181
Location: Globe, India

PostPosted: Sun Aug 30, 2009 1:55 pm    Post subject: Abend 0C7000
Reply with quote

Hi,
First time while programming in COBOL i came across an abend 0c7 abend. It is runtime abend i.e. DATA EXCEPTION.
So i could not solve it. Whenever i accept the input from user, it is showing the same abend but after hardcoding the value in program, everything is running smoothly.
Please help me to come out of this kind of abends.
Thanks,
ROHAN
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


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

PostPosted: Sun Aug 30, 2009 6:36 pm    Post subject:
Reply with quote

There are multiple topics in this forum which discuss about S0C7 in great deal. Please search the forum for S0C7.

Quote:
Whenever i accept the input from user, it is showing the same abend but after hardcoding the value in program, everything is running smoothly.
How do you do that? CICS? IMS-online (IMSDC)? ACCEPT?...
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8201
Location: East Dubuque, Illinois, USA

PostPosted: Sun Aug 30, 2009 7:38 pm    Post subject:
Reply with quote

Quote:
It is runtime abend i.e. DATA EXCEPTION.
So i could not solve it.
I have preached to my programmers for years that a S0C7 abend is one abend that is under complete control of the programmers. If a data exception is showing up, the programmer is not properly checking and / or converting numeric data fields.
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: Sun Aug 30, 2009 8:10 pm    Post subject:
Reply with quote

Hello,

Quote:
Please help me to come out of this kind of abends.
Preventing these abends is completely under the control of your program. Properly written input validation code will not encounter the 0c7 abend; it will prevent them by ensuring the data is valid before trying to use it.
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Mon Aug 31, 2009 10:21 am    Post subject:
Reply with quote

Hi Check for the offset/variable for which is giving Soc7 display the variable and check the variable in which it is been moved in or procceed .
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


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

PostPosted: Tue Sep 01, 2009 2:14 am    Post subject:
Reply with quote

Why is this thread in the DB2 Forum?
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 ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
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

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