Joined: 30 Jun 2010 Posts: 85 Location: Toronto, ON
Hi,
I have the following requirement on which i need some help asap.
Input File 1 : (Will never have dups)
111
222
333
444
Input File 2 : (May or may not have dups and may or may not be in sorted manner)
222
222
111
666
666
555
Output File 1 :
333
444
Output file 2 :
555
666
I need to delete records from Input File 1 as mentioned in input file 2 and put the remaining records in output file 1. Any unmatched record from input file 2 like 555 in the example would go to the output file 2.
Inputs for i/p file 2 will user modified so it may not be in sorted order or unique. Again, if the input file 2 has duplicates which are not present in file 1 so it would appear in the o/p file 2 only once like 666.
Souren,
Please post your DFSort function level. Also please post RECFM and LRECL for both the input file. Is your input file1 always sorted on first 3 bytes?
Joined: 30 Jun 2010 Posts: 85 Location: Toronto, ON
Hi Frank,
We dont have DFSORT utility installed in our system so I tried the ICETOOL method and it went fine. It was a great help to me and Thanksss a lot for that!!
However one thing if you kindly clarify then i would be able to use the same for any future purpose
SELECT FROM(IN2) TO(T1) ON(1,3,CH) FIRST USING(CTL2)
When its putting a '2' tag on the matched records between this IN1 and IN2 files...what exactly this 'FIRST' keyword is doing? please advice.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Quote:
We dont have DFSORT utility installed in our system
Then why did you post in the DFSORT Forum? And why would you expect me to help you further if you don't have DFSORT? BTW, if you have Syncsort, you're using Syncsort's undocumented SYNCTOOL, rather than DFSORT's fully documented ICETOOL.
If you're using Syncsort, please post future questions in the JCL Forum and mention that you're using Syncsort.
Joined: 30 Jun 2010 Posts: 85 Location: Toronto, ON
Apologize for that...I newly joined the forum and not much conversant with its different categories of forums...will take care in future..Thanks alot anyways!