Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Difference between COMP & COMP-5

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

New User


Joined: 27 Jul 2009
Posts: 3
Location: Pune

PostPosted: Mon May 03, 2010 5:12 pm    Post subject: Difference between COMP & COMP-5
Reply with quote

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. icon_smile.gif
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Mon May 03, 2010 5:19 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 785
Location: Chennai, India

PostPosted: Mon May 03, 2010 5:24 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon May 03, 2010 5:35 pm    Post subject:
Reply with quote

try searching this forum for Bill O'Boyle and comp-5.
I know that he has posted explanations about 10 times.
Back to top
View user's profile Send private message
skcvasanth

New User


Joined: 27 Jul 2009
Posts: 3
Location: Pune

PostPosted: Mon May 03, 2010 8:31 pm    Post subject: Reply to: Difference between COMP & COMP-5
Reply with quote

Thanks All for ur suggestions... icon_smile.gif
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 Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 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


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us