View previous topic :: View next topic
|
Author |
Message |
prasadplease
New User
Joined: 02 Sep 2006 Posts: 31 Location: Mumbai
|
|
|
|
Hi all,
Data type INTEGER has coresponding DCLGEN picture clause of S9(9) COMP.
The range of INTEGER is -2147483648 thru +2147483647.
Can some one explain how this 10-byte value is stored in S9(9) COMP.
Thanks,
Prasad. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Click on the manuals link at the top of the page, find the COBOL Language Reference manual, and read up on COMP and COMP-5 fields and their internal formats. Then go to the COBOL Application Programming Guide and read up on the TRUNC option. If you have questions after reading, please let us know. |
|
Back to top |
|
|
prasadplease
New User
Joined: 02 Sep 2006 Posts: 31 Location: Mumbai
|
|
|
|
Thanks...No more questions..at least not on this forum..... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Can some one explain how this 10-byte value is stored in S9(9) COMP. |
Well, it is not a 10-byte value. . . Very basic understanding has escaped you. . . Which is why the suggestion to read the appropriate documentation was made.
Why would believe it acceptable to ask others to read the manual for you and regurgitate the content here? We are most willing to help people with questions and problems, but are not a manual reading service.
Quote: |
Thanks...No more questions..at least not on this forum..... |
Ok, bye. . . |
|
Back to top |
|
|
GuyC
Senior Member
Joined: 11 Aug 2009 Posts: 1281 Location: Belgium
|
|
|
|
It is not a 10-byte value it is a 10-digit value stored in binary format in a 4-byte zone.
Using it in a COBOL program is where the TRUNC comes in. |
|
Back to top |
|
|
|