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 COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm

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