File Match problem
Posted: Tue Feb 14, 2012 9:03 pm
please help me
File-1
File-2
Expected Output
File-1 has to match with file-2, the below are my requirements
1. If field of file-1 is there in file-2 to then entire file-2 record has to move to output file
2. If field of file-1 is NOT there in file-2 to then job has to abend and error message has to come in SYSOUT saying that “BBBB is not there in file-Bâ€
File-1
----+----1--
AAAA
BBBB
CCCC
DDDD
AAAA
BBBB
CCCC
DDDD
File-2
----+----1--
AAAA 1111
CCCC 2222
DDDD 3333
AAAA 1111
CCCC 2222
DDDD 3333
Expected Output
“BBBB is not there in file-B†in SYSOUT
File-1 has to match with file-2, the below are my requirements
1. If field of file-1 is there in file-2 to then entire file-2 record has to move to output file
2. If field of file-1 is NOT there in file-2 to then job has to abend and error message has to come in SYSOUT saying that “BBBB is not there in file-Bâ€