Data will be inserted in the database as per the input file, and further we have to divide those data from database table in two files equally.
E.g. if 10 (even) rows inserted then file 1 and file 2 have 5 records each.
But if 11 (odd) rows inserted then file 1 will have 5 and file 2 have 6 records.