Reborg,
You are great man. It's working. But only thing is that i had two files like this:
CARE01_DLY_MKT_20060721:
RUN
1
1
2
and another file CARE01_DLY_AUS_20060721
RUN
1
1
42
So in the 2nd file CARE01_DLY_AUS_20060721 the record count doesn't match the data rows. Instead of thruoghing error it created two files like
CARE01_DLY_AUS_20060721_new. It shuold through error even if one file has wrong count. But it created 2 files though.
CARE01_DLY_AUS_20060721_new
CARE01_DLY_MKT_20060721 _new
So what should we change?
I thank you very much for helping me to solve this problem.
Y