on 10-26-2009 12:34 PM
Hello,
We have a requirement to read a different file name with every read. Every subsequent file would have a numeric counter updated when we receive it, we need to read that file as the directory would hold the previous files as well.
File structure :- EP<counter>.txt ; so first file would be EP001.txt, next one would be EP002.txt.
How could i do this in Sender file adapter, as there is no variable substitution available like receiver file adapter.
I cannot use wild card characters as the directory would contain previous files as well and we ned to pick the latest file.
Regards
How does 'setting to read only ' guarranty that latest file would be pciked .
e.g. we have EP001.txt EP002.txt and EP003.txt, if I use EP*.txt, that would process all three, i am i wrong here???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It will not process the latest file, it will process all non processed files.. the one that is processed will be made read-only and hence will not be processed again...
if you are looking for processing in order !! then you need to use some batch program which will move the files in some other folder ( a folder where PI is polling) and once the file is picked by PI, it will put it back to the original folder.
Regards
Suraj
Hi,
>>How could i do this in Sender file adapter, as there is no variable substitution available like receiver file adapter.
Yes true this is not available in sender channel
>>I cannot use wild card characters as the directory would contain previous files as well and we ned to pick the latest file.
You can use EP* as the filename and use processing mode as Set to Read-Only
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.