View previous topic :: View next topic
|
Author |
Message |
geeta.mishra
New User
Joined: 27 Dec 2005 Posts: 21 Location: Bangalore
|
|
|
|
Hi,
I am not able to move from S9(09) COMP-3 to 9(10) when the value of S9(09) COMP-3 = 1234567890, the digit "1" is getting truncated( the value is coming to 234567890) Please help.
Geeta |
|
Back to top |
|
|
calspach
New User
Joined: 05 May 2006 Posts: 32 Location: USA
|
|
|
|
Your value is getting truncated in the s9(9) comp-3, not in the move. 1234567890 is ten digits, s9(9) comp-3 or otherwise can only hold 9 digits. |
|
Back to top |
|
|
chk_25
New User
Joined: 09 Jun 2006 Posts: 2 Location: India
|
|
|
|
In S9(9) comp-3, the maximum data size it can hold is 5bytes( Here five digits). But u have stated that it will hold 9 digits.
plz clear my doubt.
CHETAN KUMAR |
|
Back to top |
|
|
calspach
New User
Joined: 05 May 2006 Posts: 32 Location: USA
|
|
|
|
an S9(9) comp-3 data fields holds 9 digits of numerical data, and a sign. It does this by storing two digits per byte, with the least significant byte of data holding one digit and the sign of the entire data field.
Check here for a more detailed description of how comp-3 data items are stored.
www.discinterchange.com/TechTalk_Packed_fields_.html |
|
Back to top |
|
|
|