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
Suryyogi

New User


Joined: 17 Jun 2006
Posts: 27

PostPosted: Wed Oct 31, 2007 8:17 am    Post subject: Packed to numeric conversion
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: 1288
Location: Chennai, India

PostPosted: Wed Oct 31, 2007 12:32 pm    Post subject: Reply to: Packed to numeric conversion
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: 1439
Location: Bangalore,India

PostPosted: Wed Oct 31, 2007 1:02 pm    Post subject:
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

Site Director


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

PostPosted: Wed Oct 31, 2007 8:42 pm    Post subject:
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    Post subject: Reply to: Packed to numeric conversion
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

Site Director


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

PostPosted: Thu Nov 01, 2007 8:39 am    Post subject:
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    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 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
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm

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