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

Sorted output in sort-out file without duplicates


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pankajupadhyay
Warnings : 1

New User


Joined: 04 May 2007
Posts: 13
Location: pune

PostPosted: Thu May 31, 2007 12:19 pm
Reply with quote

hello,
i have sort-in file that contain many duplicate,i need to sorted output in sort-out file without duplicates and all the duplicates in another file( in aaaaa.bbbb.ccc(mamber1) how will i achive this by dfsort, and how to write the file name in jcl .
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: Thu May 31, 2007 9:12 pm
Reply with quote

It's not clear exactly what you want to do, but I'm guessing you can accomplish it using the SELECT statement of DFSORT's ICETOOL. Something like this:

Code:

//S1    EXEC  PGM=ICETOOL             
//TOOLMSG   DD  SYSOUT=*               
//DFSMSG    DD  SYSOUT=*               
//IN DD DSN=...  input file       
//OUT1 DD DSN=...  output file1
//OUT2 DD DSN=...  output file2                     
//TOOLIN DD *                         
SELECT FROM(IN) TO(OUT1) ON(p,m,f) FIRST DISCARD(OUT2)


For complete details on SELECT, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/6.11?DT=20060615185603

If you want more specific help, provide more information as follows:

Show an example of the records in your input file (relevant fields) and what you expect for output. What is the RECFM and LRECL of your input file? What is the starting position, length and format of the key you want to check for duplicates on?
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top