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
 
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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Conversion of UTF-8 to EBCDIC muralikrishnan_new COBOL Programming 1 Tue Nov 21, 2017 5:33 pm
No new posts Mainframe Blocks to Tracks conversion upendrasri JCL & VSAM 1 Sat Nov 18, 2017 10:52 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am

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