Posted: Wed Feb 23, 2005 1:25 pm Post subject: Creating a sequence number for duplicate record.
Hi
Could anybody please tell me whether this can be solved using SYNCSORT?
The requirement is that I have a file which has duplicate record as follows. The key for the file is Field-1(character). Field-2 is ZD.
The file is FB and length is 80.
Thank you Kolusu.
I'm sorry that I didn't give a search. Could you please tell me whether SYNCSORT's SPLICE functionality is similar to that of DFSORT? _________________ Thank You
-Ace
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Feb 23, 2005 3:26 pm Post subject:
For those of you who use DFSORT, you can do this more easily and efficiently with the new functions available with z/OS DFSORT V1R5 PTF U95214 or DFSORT R14 PTF UQ95213 (Dec, 2004). For complete information on the new DFSORT and ICETOOL functions available with the Dec, 2004 PTF, see:
//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD *
AAAAA001
BBBBB001
AAAAA001
AAAAA001
BBBBB001
AAAAA001
AAAAA001
CCCCC001
CCCCC001
AAAAA001
BBBBB001
CCCCC001
/*
//T1 DD DSN=&&T1,UNIT=SYSDA,SPACE=(CYL,(5,5)),DISP=(,PASS)
//OUT DD SYSOUT=*
//TOOLIN DD *
SORT FROM(IN) TO(T1) USING(CTL1)
SORT FROM(T1) TO(OUT) USING(CTL2)
/*
//CTL1CNTL DD *
* Add a seqnum in 81-8 so we can get the records back in
* their original order.
INREC OVERLAY=(81:SEQNUM,8,ZD)
OPTION EQUALS
* Sort on the key
SORT FIELDS=(1,5,CH,A)
* Restart the seqnum at 1 each time the key changes
OUTREC OVERLAY=(6:SEQNUM,3,ZD,RESTART=(1,5))
/*
//CTL2CNTL DD *
* Sort on the seqnum to get the records back in their original order.
SORT FIELDS=(81,8,ZD,A)
* Remove the seqnum.
OUTREC FIELDS=(1,80)
/*
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Feb 23, 2005 3:31 pm Post subject:
Quote:
Could you please tell me whether SYNCSORT's SPLICE functionality is similar to that of DFSORT?
The SPLICE functionality of Syncsort's SYNCTOOL is a subset of the SPLICE functionality of DFSORT's ICETOOL. Of course, since Syncsort does not have any documentation for SYNCTOOL, you have to guess what that subset is, and you also have to guess what any error messages you get from SYNCTOOL mean. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Feb 23, 2005 5:40 pm Post subject:
Ace,
Your shop would have to decide to switch from Syncsort to DFSORT. If you want some ammunition to try to convince whoever needs to be convinced, I can send you some files prepared by the DFSORT Team that discuss what we see as the advantages of DFSORT, as well as considerations for migrating. If you (or anyone else) wants these documents, just send me a note (yaeger@us.ibm.com) offline. Please put "DFSORT" somewhere in your Subject line to catch my attention. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
While i tried to run this Job which was posted by Frank i am getting syntex error
Code:
INREC OVERLAY=(81:SEQNUM,8,ZD)
*
OPTION EQUALS
* SORT ON THE KEY
SORT FIELDS=(1,5,CH,A)
* RESTART THE SEQNUM AT 1 EACH TIME THE KEY CHANGES
OUTREC OVERLAY=(6:SEQNUM,3,ZD,RESTART=(1,5))
*
WER428I CALLER-PROVIDED IDENTIFIER IS "0001"
WER268A INREC STATEMENT : SYNTAX ERROR
WER268A OUTREC STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
Posted: Thu Feb 24, 2005 8:48 am Post subject:
coolguy,
The error messages(werxxxx) indicate that you are using Syncsort. Frank's Job only works with DFSORT. Your shop has Syncsort and it does not support the OVERLAY or RESTART features. You can use the job posted by me provided that you have the latest version of syncsort.
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