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
 
Significance of using COMP-4 and COMP-5

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Fri Jan 20, 2006 7:24 pm    Post subject: Significance of using COMP-4 and COMP-5
Reply with quote

What is the significance of using COMP-4 and COMP-5 in cobol?
I want to know whether any other usage clauses are there apart from the usage clauses COMP,COMP-1,COMP-2,COMP-3..
Back to top
View user's profile Send private message

Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Fri Jan 20, 2006 7:33 pm    Post subject:
Reply with quote

Muthuvel,

Check the manual at this site and search for 'comp'. You'll find this:

COMPUTATIONAL or COMP
Representation of the COMPUTATIONAL phrase is system-dependent and is
normally assigned to representations that yield the greatest
efficiency when arithmetic operations are performed on that system.


Then read whatever you're interested in. The manual can tell you all you need to know. If you've got any specific questions get back to me.

Cheers,
Back to top
View user's profile Send private message
kndeepthi

New User


Joined: 20 Jan 2006
Posts: 4

PostPosted: Sun Jan 22, 2006 9:50 pm    Post subject: Re: about usage clauses
Reply with quote

comp,comp-1,comp-2,comp-3,comp-4 all are used for arithmetic purposes.

comp/comp-4 is similar.data is stored in binary format.and we use picture clause here.

i dont know about com-5.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Jan 23, 2006 1:11 am    Post subject:
Reply with quote

All data is stored in binary format. The USEAGE clause tells the compiler how to interpret it.

DISPLAY is another data format. You don't see it much because it is the default.

DISPLAY-1 is DBCS format.

Take a look at the IBM Manuals on this site. The are quite good.
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 Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Need help to populate date in COMP-3 ... chetanambi DFSORT/ICETOOL 3 Tue Jun 21, 2016 12:25 pm
No new posts comparing comp-3 and unpacked numbers juares castro COBOL Programming 3 Mon May 30, 2016 6:46 pm
No new posts SIGNED DECIMAL TO COMP-3 using cobol ... ram_vizag COBOL Programming 1 Tue Mar 01, 2016 11:32 pm

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