Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to convert from packed decimal to numeric field in jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to convert from packed decimal to numeric field in jcl
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Thu Apr 14, 2011 1:09 pm    Post subject: Reply to: how to convert from packed decimal to numeric fiel
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: 1002
Location: Oostende, Belgium

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

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

DFSORT Moderator


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

PostPosted: Thu Apr 14, 2011 8:46 pm    Post subject:
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:

http://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:

http://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    Post subject:
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 Moderator


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

PostPosted: Thu Apr 14, 2011 10:57 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us