IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

ICETOOL SPLICE - Simple duplicate - Need help


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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 Developer


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

PostPosted: Tue Dec 28, 2010 7:20 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Duplicate transid's declared using CEDA CICS 3
No new posts Shift left VB record without x00 endi... DFSORT/ICETOOL 11
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
Search our Forums:

Back to Top