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

Need to understand Hex and recreating its value


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

New User


Joined: 13 Feb 2007
Posts: 2
Location: Chennai

PostPosted: Tue Feb 13, 2007 11:30 pm
Reply with quote

When I am trying to fix an abend, I come across a value X'F04040' which is causing the problem. I am trying to simulate this in test environment. What is the value which I should be giving for this variable? In other words, what is the value of this Hex and how to recreate this value?
PS: This value is fetched directly from DB2 table in the program
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Feb 13, 2007 11:41 pm
Reply with quote

F0 is a numeric 0 (zero) and the 40s are spaces or blanks.
Sounds like somebody is updating a DB2 table without verifying the data... icon_eek.gif
Math against non-numeric data quite often causes 0C7s......
Back to top
View user's profile Send private message
Sriram Sridhar

New User


Joined: 13 Feb 2007
Posts: 2
Location: Chennai

PostPosted: Tue Feb 13, 2007 11:47 pm
Reply with quote

Thanks Bill. This is a 0C7 as you have mentioned
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Wed Feb 14, 2007 12:18 am
Reply with quote

Sriram Sridhar,

How is this column declared in DB2? What is the SQL that selects the column? do you redefine the field in CBOL program?

DB2 won't let you populate a decimal column with '0^^' where ^=space.
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: Wed Feb 14, 2007 4:27 am
Reply with quote

Hello,

Please post the data description for the problem table as well as the code where the abend occurs.

It sounds like this field may be defined as char but is being used in some kind of numeric operation (move to comp-3, add, compute, etc).

Seeing the definition and the code should help. We may want to see additional data definitions in the program later.
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 Try to understand IMS control block IMS DB/DC 0
No new posts Recreating VSAM cluster catalog info ... All Other Mainframe Topics 6
No new posts To Understand EXECIO Read Parameter OPEN CLIST & REXX 2
No new posts Need to understand TCB CPU and SRB CPU Testing & Performance 11
No new posts Need to understand SQLCODE = 12 DB2 3
Search our Forums:

Back to Top