Joined: 29 Jun 2004 Posts: 36 Topics: 13 Location: PR
Posted: Tue Feb 14, 2006 2:05 pm Post subject: Eliminate duplicate and write only first 17 chars
Hi
I have a 255 record lengh file, the first 17 chars are the key. I want to eliminate all dup records and write only a 80 record length file containing only the first 17 chars without the dups. Is this is possible?.
Thanks in advance for all the help you can provide.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue Feb 14, 2006 2:16 pm Post subject:
Not sure how an 80 record length file can contain only the first 17 chars ... that would make it a 17 record length file. I'll assume you want the first 17 chars and blank padding up to position 80. I'll also assume that the RECFM is FB. If those assumptions are wrong, let us know the correct information.
Given those assumptions, you can use a DFSORT job like this:
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:
ICH70001I TSO2 LAST ACCESS AT 15:24:59 ON TUESDAY, FEBRUARY 14, 2006
IEF344I SORT S1 SORTIN - ALLOCATION FAILED DUE TO DATA FACILITY SYSTEM ERROR
IGD17045I SPACE NOT SPECIFIED FOR ALLOCATION OF DATA SET @ITS.SRV1.XFSFOUT
IEF272I SORT S1 - STEP WAS NOT EXECUTED.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum