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 Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


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