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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am


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