Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Sorted output in sort-out file without duplicates

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Sorted output in sort-out file without duplicates
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 Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Thu May 31, 2007 9:12 pm    Post subject:
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:

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us