Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

DFSORT/ICETOOL :: Icetool or Joinkeys example to compare two files

$
0
0
Author: ishant chauhan
Subject: Icetool or Joinkeys example to compare two files
Posted: Sat Aug 20, 2016 2:40 am (GMT 5.5)

I have a requirement where I need to remove records from one file based on two dates which are present in other file. example :

file 1: (format is date followed by data)

12202016 aaaaaaaaaaaaaa
12212016 bbbbbbbbbbbbbb
12202016 ccccccccccccccccc
12192016 dddddddddddddd
12192016 eeeeeeeeeeeeeee
12212016 fffffffffffffffffffffffff
12212016 gggggggggggggg

file 2: (this file has 2 dates)
1219201612202016

output should be (records from file 1 for dates present in file 2)

12202016 aaaaaaaaaaaaaa
12202016 ccccccccccccccccc
12192016 dddddddddddddd
12192016 eeeeeeeeeeeeeee

can this be done using Icetool or SORT ?
_________________
ishant


Viewing all articles
Browse latest Browse all 9405

Trending Articles