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

Packed to Numeric Conversion


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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: 1208
Location: Bangalore,India

PostPosted: Tue Apr 04, 2006 2:50 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts file manager is doing string conversion IBM Tools 3
Search our Forums:

Back to Top