View previous topic :: View next topic
|
Author |
Message |
rohanthengal
Active User
Joined: 19 Mar 2009 Posts: 206 Location: Globe, India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
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 |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Why is this thread in the DB2 Forum? |
|
Back to top |
|
|
|