Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need to understand Hex and recreating its value

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Need to understand Hex and recreating its value
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: 3158
Location: Tucson AZ

PostPosted: Tue Feb 13, 2007 11:41 pm    Post subject:
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    Post subject:
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    Post subject: Re: Need to understand Hex
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

Site Director


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

PostPosted: Wed Feb 14, 2007 4:27 am    Post subject:
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    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 Need to understand SQLCODE = 12 rohanthengal DB2 3 Thu Nov 05, 2015 11:22 am
No new posts Need documents or links to understand... sherlinpraveenkumar IDMS/ADSO 5 Wed Oct 28, 2015 4:40 pm
No new posts understand about collection ID and pa... arjun.h DB2 8 Fri Mar 15, 2013 1:56 pm
No new posts Need help to understand the behavior ... Prasun De COBOL Programming 11 Sun Sep 05, 2010 8:39 am
No new posts Help me to understand FLOAT strange b... anatol PL/I & Assembler 2 Thu May 20, 2010 6:52 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us