View previous topic :: View next topic |
Author |
Message |
sankar narayanan Beginner
Joined: 16 Oct 2007 Posts: 29 Topics: 12
|
Posted: Fri Jun 06, 2008 4:33 am Post subject: max value stored in a comp field |
|
|
hi all,
can you please tell me what is a maximum value stored in the different comp (comp, comp-2 and comp-3) fields and can i store +20000 in
pic s9(4) field?
also please explain me how the values are stored in the comp type fields. are there any sort of calculations for these? if yes please explain me.
Thanks in advance. |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Fri Jun 06, 2008 5:48 am Post subject: |
|
|
Look up the manuals - that is what they are there for. To make it easier there are links at the top of this web page - #Quick Manuals. Look at both the COBOL manuals and do a search on USAGE. That will give lots of nice, relevant and correct reading. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Jun 06, 2008 10:22 am Post subject: |
|
|
sankar narayanan,
As Nic pointed out refer the manuals. Click on the Quick manuals link and the cobol manuals are at the top.
Choose the "Enterprise COBOL Language Reference" and read the section 5.3.16.1
While you are at it you might also want to read the compiler option TRUNC which dictates the storage
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/igy3pg10/2.4.52
Hope this helps...
Kolusu |
|
Back to top |
|
 |
|
|