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

Abend 0C7000


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rohanthengal

Active User


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

PostPosted: Sun Aug 30, 2009 1:55 pm
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

Superior Member


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

PostPosted: Sun Aug 30, 2009 6:36 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sun Aug 30, 2009 7:38 pm
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

Moderator Emeritus


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

PostPosted: Sun Aug 30, 2009 8:10 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
No new posts WER999A - UNSUCCESSFUL SORT 8ED U Ab... SYNCSORT 5
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
No new posts Need to get an DLI abend like U0200 IMS DB/DC 2
Search our Forums:

Back to Top