I have 2 files,
File 1 – Control file (with only one record)
Data –
0000319072010
File 2 – Main file
Data –
000000000000000019072010 (Header)
123123231
123123123
123123123
999999999999999999900003 (Trailer)
I need to compare these two files if date from File 1 is equal to date from File 2 – ‘19072010’
And count from file1 is equal to count from file 2 – ‘00003’
If the date and count is matching, process the file.
If not matching, show an error message.