|
View previous topic :: View next topic
|
| Author |
Message |
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
Hi.
I have a file that comes to my system from an interface.
The file is having 5 byte date values : S9(9) comp3 starting at position 10 in the file.
The date value in the file is in hexadecimal format which shows junk characters.
Let me know how to extract the records having date in readable format.
Thanks, |
|
| Back to top |
|
 |
smijoss
Active User
Joined: 30 Aug 2007 Posts: 114 Location: pune
|
|
|
|
| Code: |
OPTION COPY
OUTREC BUILD=(10,5,PD,TO=ZD,LENGTH=9)
|
|
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Mukesh,
That's only one of many ways to do what you want depending on what you want the output field to look like.
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:
www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080 |
|
| Back to top |
|
 |
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
Thanks Frank,
I will go through the manuals present in the link above. |
|
| Back to top |
|
 |
|
|