View previous topic :: View next topic
|
Author |
Message |
manisha-s Warnings : 1 New User
Joined: 22 May 2006 Posts: 13
|
|
|
|
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 |
|
|
sihanature Warnings : 1 New User
Joined: 01 Sep 2005 Posts: 33
|
|
|
|
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 |
|
|
manisha-s Warnings : 1 New User
Joined: 22 May 2006 Posts: 13
|
|
|
|
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 |
|
|
OldSystemProgrammer
New User
Joined: 12 May 2006 Posts: 7
|
|
|
|
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 |
|
|
|