IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Where do we use comp where comp-2 , comp-3


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Interviewers are surprised with my an... Mainframe Interview Questions 6
No new posts Cobol COMP-2 fields getting scrambled... Java & MQSeries 6
No new posts convert alphanumeric PIC X(02) to hex... COBOL Programming 3
Search our Forums:

Back to Top