View previous topic :: View next topic
|
Author |
Message |
skcvasanth
New User
Joined: 27 Jul 2009 Posts: 3 Location: Pune
|
|
|
|
Hi Everyone,
Can anyone guide me the exact difference between comp & comp-5 and at what situation we use comp-5 ? I tried to google it but i didn't get exact about COMP-5.
Thanks,
CVR. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
There is a link to manuals at the top of this page. Click on it, find the COBOL Language Reference manual, and look up COMP-5 in it (hint: the flashlight is the search icon). |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
Hi,
From one of the Bill O'Boyle's posts...
Quote: |
COMP-5 was introduced with OS/390 COBOL 2.2.1 and is known as "Native Binary".
The "TRUNC" option has no effect on COMP-5 variables.
Similar to the "TRUNC(BIN)" option, COMP-5 variable values are never truncated based upon their PICTURE clause number of digits.
Internally to ensure this, the compiler uses ICM and STCM instructions on COMP-5 non-float variables to avoid truncation. |
|
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
try searching this forum for Bill O'Boyle and comp-5.
I know that he has posted explanations about 10 times. |
|
Back to top |
|
|
skcvasanth
New User
Joined: 27 Jul 2009 Posts: 3 Location: Pune
|
|
|
|
Thanks All for ur suggestions... |
|
Back to top |
|
|
|