View previous topic :: View next topic
|
Author |
Message |
saagu
New User
Joined: 15 May 2008 Posts: 41 Location: Chennai
|
|
|
|
Hi,
What is the maximum value that can be moved to a variable of data type 9(04) COMP SYNC.
Regards,
Saagu |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you follow the advice you received in your quite similar topic of 2 days ago.
If you find something in the manual that is not clear, post what your found and someone will be able to clarify. |
|
Back to top |
|
|
sakthikumarT
New User
Joined: 09 Apr 2009 Posts: 50 Location: Bangalore
|
|
|
|
Hello,
We can store maximum values between these ranges
-32768 to 32767
you have declared the usage clause sync,so it might occupy some extra byte but those extra bytes are always unused. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you do some testing and re-post your findings. You will find that a 9(4) comp field will have 9999 as the max (unless provision is made for more).
What you have posted may be more mis-leading than helpful. . .
As Saagu was suggested in this and the other similar topic, some lookup in the manual is in order. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
The allowed range depends upon the compiler options. Change the options, change the range. The manuals link at the top of the page allows use of the COBOL Language Reference and COBOL Programming Guide, which talks extensively of the compiler options and their impact. |
|
Back to top |
|
|
|