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

Why we do not use PIC clause in COMP1 & COMP2


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

New User


Joined: 28 Nov 2006
Posts: 2
Location: Pune

PostPosted: Tue Dec 19, 2006 10:59 am
Reply with quote

pls tell me the difference between COMP1 & COMP2?
and also why we do not use PIC clause in COMP1 & COMP2?
it is already declared or not ? if yes then where & how?
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue Dec 19, 2006 11:14 am
Reply with quote

Quote:
pls tell me the difference between COMP1 & COMP2?

COMP-1 is specified for internal floating-point items (single precision) whereas COMP-2 is specified for internal floating-point items (double precision).
COMP-1 items are 4 bytes long whereas COMP-2 items are 8 bytes long.
Quote:
and also why we do not use PIC clause in COMP1 & COMP2?

Because format is pre-defined.
Quote:
it is already declared or not ? if yes then where & how?

Yes, it is.
COMP-1 +0.9(8) E+99
COMP-2 +0.9(17) E+99
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 To search DB2 table based on Conditio... DB2 1
No new posts NOT IN clause in COBOL pgm COBOL Programming 8
No new posts SUSBSCRIPT WITH SIGN IN PIC CLAUSE COBOL Programming 3
No new posts usage of CASE in WHERE clause DB2 10
No new posts Cobol redefines for Signed pictured c... COBOL Programming 4
Search our Forums:

Back to Top