Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Why we do not use PIC clause in COMP1 & COMP2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Why we do not use PIC clause in COMP1 & COMP2
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: 1452
Location: Chicago, IL

PostPosted: Tue Dec 19, 2006 11:14 am    Post subject: Re: About COMP1 & COMP2
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    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 help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm
No new posts [SQL0029] INTO clause missing from em... HABBIE DB2 2 Fri Sep 04, 2015 3:54 pm
No new posts 3-D Table with nested DEPENDING ON Cl... VivekKhanna COBOL Programming 5 Sat Aug 08, 2015 11:18 pm
No new posts when=group clause: question about the... tuxama DFSORT/ICETOOL 2 Thu Mar 26, 2015 12:51 pm
No new posts pic clause on group variable error CuriousMainframer COBOL Programming 6 Mon Jul 14, 2014 6:33 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us