IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To Pack Numeric Edited Data


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Fri May 26, 2006 2:45 pm
Reply with quote

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
View user's profile Send private message
Bharanidharan

New User


Joined: 20 Jun 2005
Posts: 86
Location: Chennai, India

PostPosted: Fri May 26, 2006 6:21 pm
Reply with quote

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
View user's profile Send private message
nijugopalan

New User


Joined: 15 Oct 2005
Posts: 15
Location: pune

PostPosted: Sun Jun 25, 2006 1:49 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top