Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us