Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts Updating data from one file to other!!! Vignesh Sid SYNCSORT 1 Mon Nov 06, 2017 2:42 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us