Hi Squashman,
I am extremely sorry, I did make lots of mistake to my presentation/question.
I have rectified the mistakes and represent it.
I have a flat text file of approx. 5000 rows, Starting from the text file 10th digit upto next 9 digit is the corresponding CSV file name which is located in c:\database.
Once the corresponding file is found, our search serial in text file starts from 40th digit to 45 digit thats 6 digits.
This serial of 6 digit is to be searched in CSV file from 4th column onward till the end of file. If serial is found then copy column 1 of CSV File(which is 2 digits) to text file 56-57th digit and overwrite it.
Next copy the column B & C from CSV to the end of row in text file with tab spacing. If corresponding file or serial is not found continue searching next row.
Code: Select all
(-----9--------9--------------8--------------13= 39)-- [40-45]---10--------[56-57]
222000322 131044003 16102014 0000000500000 310747 0201001052 99 000000001
Editing mistake now rectified.
CSV FILES::
131044003.csv
44|2000|325|310741|310742|310743|310744|310745|310746|310747|310748|310749|310750|
356044052.csv
31|2001|9829|041901|041902|041903|041904|041905|041906|041907|041908|041909|041910|
411044011.csv
17|2014|52119|135301|135302|135303|135304|135305|135306|135307|135308|135309|135310|135311|135312|135313|