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 Validate if a Value from the file is ... balacsv2 COBOL Programming 8 Mon Jun 19, 2017 11:52 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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