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
 

 

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 Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 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
No new posts comparing comp-3 and unpacked numbers juares castro COBOL Programming 3 Mon May 30, 2016 6:46 pm
No new posts SIGNED DECIMAL TO COMP-3 using cobol ... ram_vizag COBOL Programming 1 Tue Mar 01, 2016 11:32 pm


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