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
 

 

Removing Duplicates using ICETOOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
l.nethaji

New User


Joined: 16 Mar 2008
Posts: 90
Location: tamil nadu

PostPosted: Thu Jan 21, 2010 7:18 pm    Post subject: Removing Duplicates using ICETOOL
Reply with quote

Hi ,

Can anyone help me with this. i need to remove the duplicates in my file based on the fields from (1 to 33 and 44 to 52) . I ran the below jcl but it was not successful.
Code:

//STEP1   EXEC PGM=ICETOOL                           
//TOOLMSG  DD  SYSOUT=*                               
//DFSMSG   DD  SYSOUT=*                               
//SORTIN   DD  DSN=DPRACE.D372988.TESTING,DISP=SHR   
//SORTOUT  DD  DSN=DPRACE.D372988.TESTING.OUT3,       
//             DISP=(,CATLG,DELETE),               
//             SPACE=(CYL,(120,100),RLSE),           
//             AVGREC=K           
//SORTXSUM DD  DSN=DPRACE.D372988.TESTING.XSUM3,     
//             DISP=(,CATLG,DELETE),               
//             SPACE=(CYL,(120,100),RLSE),           
//             AVGREC=K           
//TOOLIN    DD *                                     
  SELECT FROM(SORTIN) TO(SORTOUT)-                   
  ON(1,33,44,8)  FIRST DISCARD(SORTXSUM)             
/*                             

Thanks,
Nethaji
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jan 21, 2010 10:02 pm    Post subject:
Reply with quote

Hello,

You need to post the diagnostic info generated by the run. Include all of the message id's and text.
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 Jan 21, 2010 11:02 pm    Post subject:
Reply with quote

Well, for one thing, your syntax is wrong. It should be:

Code:

  SELECT FROM(SORTIN) TO(SORTOUT)-                   
  ON(1,33,CH) ON(44,9,CH)  FIRST DISCARD(SORTXSUM)


Note that you need a separate ON field for each key, and positions 44 to 52 have a length of 9, not 8.

If that doesn't give you what you want, then give more details of what you're trying to do including an example of the records in your input file and what you expect for output and the RECFM and LRECL of the input file.
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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Updating the counters after eliminati... PANDU1 DFSORT/ICETOOL 12 Mon Nov 21, 2016 9:47 am
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts ICETOOL/SYNCSORT - SYSPRINT output nartcr DFSORT/ICETOOL 17 Wed Oct 05, 2016 10:46 pm
No new posts Removing Extra Spaces in a comma sepa... Puspojit DFSORT/ICETOOL 3 Tue Sep 13, 2016 7:46 am


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