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

Data Conversion from Packed Decimal to Decimal


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Huzefa

New User


Joined: 05 Dec 2006
Posts: 83
Location: Bangalore

PostPosted: Fri Sep 05, 2008 3:07 pm
Reply with quote

Hi All,
I need to convert a Packed Decimal Variable to Decimal.

Below is the code am trying
ws-packed w 04 P
ws-decimal W 10 N

Move ws-packed to ws-decimal

When I try to write ws-decimal in the file I still get it in Hex format or so and not in a readable format.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Sep 05, 2008 4:43 pm
Reply with quote

use ws-decimal = ws-packed instead of move.
Back to top
View user's profile Send private message
Huzefa

New User


Joined: 05 Dec 2006
Posts: 83
Location: Bangalore

PostPosted: Fri Sep 05, 2008 5:21 pm
Reply with quote

Thanks Craq
It Worked!!!!
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Structured Data and Nested Loops via ... COBOL Programming 0
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts Alternate key data extracttion COBOL Programming 13
Search our Forums:


Back to Top