Hi,
I have 2 files
File A (Main File):
----+----1----+----2---
15540614010057866010900
15540614010285646011000
15540614011429696011000
15540614013667746010900
15540614022133976010900
15540614031529416010900
File B (Reference File):
----+----1----+--
1554061401005786
1554061401028564C
1554061401142969
1554061401366774
1554061402125526L
1554061402213397
1554061403152941
Key in both files is from 1-16.
I want to match above 2 files on Key and remove records from file A for which value
in column 20-22 is 090 (lets call it Type) and File B contains a non blank
in column 17 (lets call it status) for the same record.
Based on above 2 files Output should look like:
----+----1----+----2---
15540614010057866010900
15540614010285646011000
15540614011429696011000
15540614013667746010900
15540614022133976010900
15540614031529416010900
Here 5th record from File A (key - 1554061402125526) is removed because this
record has type - 090 and is having status - L in file B.
I can do it in 3 steps.
In 1st step I will extract records from File A which has type as 090
In 2nd step I will compare it with file B using Icetool & remove the records with status as non blanks
In 3rd step I can merge the output file of step 2 with my input file A and remove duplicates.
What i want to know is can we do it in single step of using ICETOOL ?. If yes, can somebody give me a sample JCL.