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

how to convert from packed decimal to numeric field in jcl


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
poturaju

New User


Joined: 12 Apr 2011
Posts: 2
Location: india

PostPosted: Thu Apr 14, 2011 1:03 pm
Reply with quote

Hi Friends,

i have requirement like to converting from 'packed decimal to numeric' data types. how to converting from comp-3 to numeric or (numeric to comp-3) .

pls give me solution for this requirements.


Thanks,
Ravi
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10877
Location: italy

PostPosted: Thu Apr 14, 2011 1:09 pm
Reply with quote

Quote:
pls give me solution for this requirements.

why should we? icon_evil.gif

the jcl and dfsort have quite a few examples on how to do it
all You have to do is just to carry on a bit of research !
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1308
Location: Vilnius, Lithuania

PostPosted: Thu Apr 14, 2011 1:11 pm
Reply with quote

What have you tried yourself?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Apr 14, 2011 8:46 pm
Reply with quote

Ravi,

Your question is too vague for a detailed answer. How you would do what you want with DFSORT depends on what your input field looks like and what you want the output to look like.

For an overview of the information you're looking for, see the topics "Reformatting: Numeric Editing" and "Reformatting: Numeric Conversion" in my "DFSORT: Beyond Sorting" paper at:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000091

For complete details of DFSORT's conversion functions, see "z/OS DFSORT Application Programming Guide" at:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Apr 14, 2011 10:43 pm
Reply with quote

SORTBEYOND was the 'tight' little reference I needed to convince my people to stop putting off SORT.

they are so used to generating a quick cobol program to do some little data manipulating task - that it was downright frustrating.

and to be honest, it is hard to motivate someone to open the REF Manual.
but this was the intro that was needed.

thx for the post.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Apr 14, 2011 10:57 pm
Reply with quote

Dick,

I'm happy to hear "DFSORT: Beyond Sorting' was of use to you. I originally had it published as a shorter article for a Magazine. I later turned it into a longer paper and kept it up to date over the years. Glad I did.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
Search our Forums:

Back to Top