View previous topic :: View next topic
|
Author |
Message |
Sumeendar
New User
Joined: 31 Jan 2006 Posts: 39
|
|
|
|
Hi
This is regarding COMP-4 (Binary) variables.
I have comp-4 variable declared as below
77 subh pic 9(4) comp-4.
Kindly let me know what will be maximium value this field (subh) can accomodate. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Have you looked in the manual (link at the top of the page), and what didn't you understand?
The answer also depends on Compile option TRUNC, so look at that as well. |
|
Back to top |
|
|
Naish
New User
Joined: 07 Dec 2006 Posts: 82 Location: UK
|
|
Back to top |
|
|
Sumeendar
New User
Joined: 31 Jan 2006 Posts: 39
|
|
|
|
As my variable is
77 subh PIC 9(4) comp-4.
I believe here subh will occupy 2 bytes only. If so maximum number of digits field subh can accomodate is 1 to 4.
Kindly let me know if this is correct |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Well, if you now want to know the maximum digits, then no, you are wrong.
As Naish has pointed you to your other post on the subject and you've not cracked it from that, I don't know what we can do that will be much use to you in an interview. |
|
Back to top |
|
|
|