Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To Pack Numeric Edited Data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: To Pack Numeric Edited Data
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    Post subject: Re: To Pack Numeric Edited Data
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    Post subject: Re: To Pack Numeric Edited Data
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 5 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 16 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts Validate if a Value from the file is ... balacsv2 COBOL Programming 8 Mon Jun 19, 2017 11:52 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us