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
Suryyogi

New User


Joined: 17 Jun 2006
Posts: 27

PostPosted: Wed Oct 31, 2007 8:17 am
Reply with quote

Is there any formual which can be used while converting packed decimals into numeric fields.
e.g X 5 P 2
what should be the numeric conversion?
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Oct 31, 2007 12:32 pm
Reply with quote

Sury,

Check the foll links.

http://ibmmainframes.com/viewtopic.php?t=3353

http://ibmmainframes.com/viewtopic.php?t=7624
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Oct 31, 2007 1:02 pm
Reply with quote

Suryyogi,

You didn't 'SAY' what is in your mind properly..... You wanted this to be done using JCL or some CA product (since its posted in CA forum).
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Oct 31, 2007 8:42 pm
Reply with quote

Hello,

Quote:
converting packed decimals into numeric fields
Packed decimal is a numeric field type.

If you explain what you want for output, we will be able to offer suggestions for your Easytrieve(?) question.
Back to top
View user's profile Send private message
Suryyogi

New User


Joined: 17 Jun 2006
Posts: 27

PostPosted: Thu Nov 01, 2007 8:31 am
Reply with quote

let me clear this in another way..
I have amount field amt 5 p 2
I want to make numeric and i will write it in o/p file as numeric and not as packed decimal.

how can we define numeric equivalents to such packed decimals.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Nov 01, 2007 8:39 am
Reply with quote

Hello,

Quote:
I want to make numeric and i will write it in o/p file
How will this field be used after it is written?

If it will be used in another mainframe program as input, there is no reason to change the data to some different format.

You might try amt 7 n (or 7 n 2). If the amount is to be printed on a report, you mikght include a MASK.

Good luck and we're here if there are questions.
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 Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
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
Search our Forums:

Back to Top