View previous topic :: View next topic
|
Author |
Message |
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
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 |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
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 |
|
|
kndeepthi
New User
Joined: 20 Jan 2006 Posts: 4
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
|