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
 

 

ICETOOL SPLICE - Simple duplicate - Need help

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

Active User


Joined: 04 Oct 2006
Posts: 118
Location: NJ, USA

PostPosted: Tue Dec 28, 2010 3:16 am    Post subject: ICETOOL SPLICE - Simple duplicate - Need help
Reply with quote

Hi,
I have 2 files and want to find out duplicates based on two fields.
The two files are FB Lrecl= 800
Here is my control card. I get my duplicate file as empty! though there are dups
Code:
//TOOLIN DD *                                                   
COPY FROM(IN1) TO(T1) USING(CTL1)                               
COPY FROM(IN2) TO(T1) USING(CTL2)                               
SPLICE FROM(T1) TO(DUPL) ON(130,8,CH) ON(362,9,ZD) -             
  KEEPNODUPS KEEPBASE WITHALL WITH(1,800) USING(CTL3)           
/*                                                               
//CTL1CNTL DD *                                                 
  INREC OVERLAY=(800:C'11')                                     
/*                                                               
//CTL2CNTL DD *                                                 
  INREC OVERLAY=(800:C'22')                                     
/*                                                               
//CTL3CNTL DD *                                                 
  OUTFIL FNAMES=DUPL,INCLUDE=(800,2,CH,EQ,C'12'),BUILD=(1,800)   
  OUTFIL FNAMES=F1ONLY,INCLUDE=(800,2,CH,EQ,C'11'),BUILD=(1,800)
  OUTFIL FNAMES=F2ONLY,INCLUDE=(800,2,CH,EQ,C'22'),BUILD=(1,800)
/*                                                               
//                                                               


Any help will be appreciated.
Thanks,
Viji
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: Tue Dec 28, 2010 7:20 am    Post subject:
Reply with quote

Please show an example of the records in each input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. If file1 can have duplicates within it, show that in your example. If file2 can have duplicates within it, show that in your example.

Also, run this job and show the //SYSOUT messages you receive, so I can see what level you're at:

Code:

//S1    EXEC  PGM=SORT
//SYSOUT    DD  SYSOUT=*
//SORTIN DD *
RECORD
//SORTOUT DD DUMMY
//SYSIN    DD    *
    OPTION COPY
/*
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 Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
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 Icetool or Joinkeys example to compar... ishant chauhan DFSORT/ICETOOL 21 Sat Aug 20, 2016 2:40 am
No new posts ICETOOL higher option Anshul Das DFSORT/ICETOOL 14 Thu Apr 14, 2016 8:00 am


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