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

Need to extract the packeddecimal data in a readable format.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Tue Aug 03, 2010 1:57 pm
Reply with quote

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
View user's profile Send private message
smijoss

Active User


Joined: 30 Aug 2007
Posts: 114
Location: pune

PostPosted: Tue Aug 03, 2010 4:37 pm
Reply with quote

Code:

   OPTION COPY
   OUTREC BUILD=(10,5,PD,TO=ZD,LENGTH=9)
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: Tue Aug 03, 2010 11:34 pm
Reply with quote

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
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Wed Aug 04, 2010 5:16 pm
Reply with quote

Thanks Frank,

I will go through the manuals present in the link above.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Structured Data and Nested Loops via ... COBOL Programming 0
No new posts Alternate key data extracttion COBOL Programming 13
No new posts Extract records for a specific condit... DFSORT/ICETOOL 25
Search our Forums:


Back to Top