View previous topic :: View next topic
|
Author |
Message |
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
Hi,
I have got a field with value 11.55.
I need to 'PACK' it.
How do we do this??? How can we convert a Numeric Edited field to packed format.
Thanks
ap_mainframes |
|
Back to top |
|
|
Bharanidharan
New User
Joined: 20 Jun 2005 Posts: 86 Location: Chennai, India
|
|
|
|
If you test the same in COBOL by coding a numeric-edit to packed move and see the listing, it will show you there would be two separate moves in system buffers - one for mantissa and one for decimal portion.
This means in your assembler source, you need to orchestrate the moves separately for mantissa and decimal, and then PACK the resulting field.
Sorry ap_mainframes! Seems you got no choices!
Regards,
Bharani. |
|
Back to top |
|
|
nijugopalan
New User
Joined: 15 Oct 2005 Posts: 15 Location: pune
|
|
|
|
hii
see first define this value in a zoned field and declare it .
u can pack it in the code using pack instruction which is directly available in assembler.
MVI NUM,=Z'11.55'
PACK PNUM,NUM
NUM DS ZL5 |
|
Back to top |
|
|
|