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

DFSORT for placing duplicate records in a separate file.


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

New User


Joined: 15 Sep 2008
Posts: 12
Location: Pune

PostPosted: Tue Oct 14, 2008 6:09 pm
Reply with quote

I am not able to place duplicate records in a separate file using SORT.
The JCL I am using is as follows:
Code:

//STEP04 EXEC PGM=SORT                           
//SORTIN DD DSN=ABC
//SORTOUT DD DSN=DEF
//SORTXSUM DD DSN=XYZ
//SYSIN DD *               
   SORT FIELDS=(5,18,CH,A)
   SUM FIELDS=NONE,XSUM   
/*   
//SYSOUT    DD SYSOUT=*
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 Oct 14, 2008 9:19 pm
Reply with quote

DFSORT does NOT support XSUM, but it can do the same thing with the SELECT operator of ICETOOL. The DFSORT/ICETOOL job would be:

Code:

//STEP04 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*                           
//SORTIN DD DSN=ABC
//SORTOUT DD DSN=DEF
//SORTXSUM DD DSN=XYZ
//TOOLIN DD *               
SELECT FROM(SORTIN) TO(SORTOUT) ON(5,18,CH) FIRST DISCARD(SORTXSUM)
/*
 


For more details, see the "Keep dropped duplicate records (XSUM)" Smart DFSORT Trick at:

Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top