View previous topic :: View next topic
|
Author |
Message |
prabhucs01 Warnings : 1 New User
Joined: 07 Mar 2005 Posts: 43
|
|
|
|
if i have a variable like
05 a-var pic s9(3) value -123
then when we display the variable 'a-var' will - be specified in the output.
if not so then how is it stored. |
|
Back to top |
|
|
Deepa.m
New User
Joined: 28 Apr 2005 Posts: 99
|
|
|
|
'- 'sign will not be specified in the output. The sign will be stored in the last nibble (4 bits) of the a-var.
so you will get a output which gives a different value in the last digit as sign is stored in last nibble. if u want a proper display use "sign is leading separate' in the declaration. |
|
Back to top |
|
|
prabhucs01 Warnings : 1 New User
Joined: 07 Mar 2005 Posts: 43
|
|
|
|
since the above declaration is zoned numeric storage each variable will take a byte storage.isn't so? |
|
Back to top |
|
|
Deepa.m
New User
Joined: 28 Apr 2005 Posts: 99
|
|
|
|
yes. |
|
Back to top |
|
|
|