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
 
Where do we use comp where comp-2 , comp-3

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

New User


Joined: 22 May 2006
Posts: 13

PostPosted: Wed May 24, 2006 10:53 am    Post subject: Where do we use comp where comp-2 , comp-3
Reply with quote

we use comp to save memory but i want to know that where do we use comp where comp-2 , comp-3 , etc .
can anybody clarify it with eg.

WARNING: TITLE EDITED
Back to top
View user's profile Send private message

sihanature
Warnings : 1

New User


Joined: 01 Sep 2005
Posts: 33

PostPosted: Wed May 24, 2006 6:28 pm    Post subject:
Reply with quote

Manisha,

If you refer previous document posted in this forum, you will come to know why we are using COMP,what for we are using,Where we are using and all.


Regards,
Back to top
View user's profile Send private message
manisha-s
Warnings : 1

New User


Joined: 22 May 2006
Posts: 13

PostPosted: Thu May 25, 2006 10:53 am    Post subject: got my answer for difference between different types of comp
Reply with quote

thanks a lot
i got answer of my question .
one more site also i saw .
there it was given that comp-1 is used in parallel to float in c/c++.
similarly comp-2 for double in c,etc
Back to top
View user's profile Send private message
OldSystemProgrammer

New User


Joined: 12 May 2006
Posts: 7

PostPosted: Wed May 31, 2006 6:44 pm    Post subject:
Reply with quote

The data filed types:
- COMP - this field uses binary data
- COMP-1 - floating point short form
- COMP-2 - foalting point long form
- COMP-3 - packed decimal

You can read more about data form e. g. in the IBM COBOL Reference Manual.
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