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

Comparing COMP-3 and Invalid decimal


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

New User


Joined: 19 Feb 2006
Posts: 27

PostPosted: Tue Aug 21, 2007 10:48 am
Reply with quote

Hi,

if we initialized the numeric values, the data-item contains ZEROs. if that may be a Numeric,COMP,COMP-1,COMP-2,COMP-3.

the data internally process in a binary format.

Ex: PIC 9(10) is decimal. if we want to process this, first it will convert from decimal to binary(internally). it takes time to convert, to avoid this we use COMP. Comp internally stores in a binary format, that's why we cann't display this values directly in the console.

If we declare the data-items in numeric. there is no way to store the ???
the stored values in numeric are NUMERIC (0-9), HIGH-VALUES, LOW-VALUES.
Back to top
View user's profile Send private message
Saroj Tripathy

New User


Joined: 05 Mar 2007
Posts: 23
Location: India

PostPosted: Mon Aug 27, 2007 12:10 pm
Reply with quote

Hi while going thru the mails I found abin mentioning the below

Quote:
The first entry in the table has some undefined value LOW-VALUE or HIGH-VALUE. Whatever, it is a value that should not be there in a decimal field. My doubt how is an invalid decimal equals to COMP-3 zeroes. Please clarrify whether this is possible or not.




Now can it be that LOW-VALUE is same as zeroes and hence the match ???
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 Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Need Help with Packed Decimal Signs DFSORT/ICETOOL 4
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Comparing Header and Trailer. DFSORT/ICETOOL 7
Search our Forums:

Back to Top