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
 

 

Packed to Numeric Conversion

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
madhand

New User


Joined: 04 May 2005
Posts: 10

PostPosted: Tue Apr 04, 2006 9:47 am    Post subject: Packed to Numeric Conversion
Reply with quote

Hi

I have an requirement in which I need to move packed values to Numeric fields..The resultant field should also be suppressed.

I tried thru a Easy trieve program..

The declaration are as below::

Input field:: AA-CIND-UNIT-PRICE 78 06 P

Output field:: AB-CIND-UNIT-PRICE 78 11 N 4 MASK 'ZZZZZZ9.9999'

there is an intermediate working storage field which is declared as
WS-CIND-UNIT-PRICE W 11 N.

Initially AA-CIND-UNIT-PRICE is moved to WS-CIND-UNIT-PRICE
Then, WS-CIND-UNIT-PRICE is moved to AB-CIND-UNIT-PRICE

But still AB-CIND-UNIT-PRICE is displayed as packed values..Pls help me out..

Thanks
Madhan.
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Tue Apr 04, 2006 2:50 pm    Post subject:
Reply with quote

Madhan,

why u gave o/p field as
Output field:: AB-CIND-UNIT-PRICE 78 11 N 4 MASK 'ZZZZZZ9.9999'
when input field variable defination is 06 p i think u need to give
zzzzzzzzzzz9.
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts Conversion of a VB file to FB. isssal DFSORT/ICETOOL 1 Mon Oct 31, 2016 10:23 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts EBCDIC to ASCII conversion using OCOPY mistah kurtz All Other Mainframe Topics 5 Tue Sep 06, 2016 2:26 pm
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm


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