Hello,
I have a 3700 byte data file as follows (File A) and a VSAM lookup file (File B) - 1000 bytes. File B has the key field in column 1-11.
The rules -
The lookup file B will be used to read File A, and if there is a match of the File B key in File A, I will need to eliminate those records alone from A.
File A can contain these key values in multiple (specific) columns within the same record. I need to scan for the presence of these key values in those columns and reject the records with a matching key (dump to file) and retain the unmatched ones from File A in its entirety with no change to file structure.
File A can contain spaces for the columns being validated.
Examples provided below - (See attached spreadsheet if alignment problems in the post)
Input file A - Several columns omitted below for illustration only, does not depict all columns of File A, also a few more columns can contain the dups, not shown here.
Prod# Name CODE(1) CODE(2) CODE(3) CODE(4)
(Pos 200:11) (Pos 300:20) (Pos 500:11) (Pos 600:11) (Pos 700:11) (Pos 800:11)
00179009330 Smith 00453405343 00179009330 00984323443
00179102650 John 00179102650 00356877555
00587656755 Doe 00179195730 00656566454
55587656700 Smith 00179195732 00656566454 00179009330
00485758655 Alice 00643343333 00000000222 00444443333 00775857575
00179009330 Jane 00656566453 00000000222
Lookup File (File B) - Keys 1:11
00179009330 68865474940494 FSDDFGLL OOODDDDDDDDDD
00179102650 30062775537799 XYZABC SMITH ABCDEFFFFFFF
00656566453 64996600884844 DOE JANE
00656566454 64996600884844 DOE JOHN
Output File (Unmatched)
Prod# Name CODE(1) CODE(2) CODE(3) CODE(4)
00485758655 Alice 00643343333 00000000222 00444443333 00775857575
00179009330 Jane 00656566453 00000000222
Rejected records (Matched)
Prod# Name CODE(1) CODE(2) CODE(3) CODE(4)
(Pos 200:11) (Pos 300:20) (Pos 500:11) (Pos 600:11) (Pos 700:11) (Pos 800:11)
00179009330 Smith 00453405343 00179009330 00984323443
00179102650 John 00179102650 00356877555
00587656755 Doe 00179195730 00656566454
55587656700 Smith 00179195732 00656566454 00179009330
Is there any way I could use splice for this or any other method with ICETOOL? Any pointers are appreciated!
Thank you!