View previous topic :: View next topic
|
Author |
Message |
new2cobol
New User
Joined: 04 Jan 2006 Posts: 77 Location: Bangalore
|
|
|
|
Hi,
I've got a file with COMP-3 (PD) values in it. I am creating a report extracting values from this report using DFSORT and ICETOOL. Is there away I can conver the PD values into ZD? |
|
Back to top |
|
|
sril.krishy
Active User
Joined: 30 Jul 2005 Posts: 183 Location: hyderabad
|
|
|
|
The below post by Frank might help you.
ibmmainframes.com/viewtopic.php?t=11861
If your requirement is some thing diffrent, then post your requirement completely with some dummy data and file properties.
Thanks
Krishy |
|
Back to top |
|
|
new2cobol
New User
Joined: 04 Jan 2006 Posts: 77 Location: Bangalore
|
|
|
|
That helped in another sort card I had, but this is still open.
The issue is the file looks like this
I mean some charecters, numbers, packed numbers. I want my report to have data like
-> that is the packed data converted to readable format. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You can do this in several ways with DFSORT's INREC, OUTREC or OUTFIL statement. See the following for more information:
www.ibm.com/servers/storage/support/software/sort/mvs/beyond_sorting/online/srtmboft.html#ocv
www.ibm.com/servers/storage/support/software/sort/mvs/beyond_sorting/online/srtmboft.html#oed
For example, you could use DFSORT control statements something like this:
Code: |
OPTION COPY
OUTREC FIELDS=(1,6,10:7,3,17:10,4,PD,TO=ZD,LENGTH=4)
|
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. You can access it online, along with all of the other DFSORT books, from:
Use [URL] BBCode for External Links |
|
Back to top |
|
|
|