on 07-09-2009 9:07 AM
Dear All
My scenario is file to idoc.
legacy system generates file with a file name as current date.txt which keeps on changing
eg: on 9th july file name is 09072009.txt and
on 10thjuly filename would be 10072009.txt
How do i pick such file and process it?
What should be the File Name in the sender communication channel?
Please help me in resolving this issue
Thanks
Bhasker
hi
use
*.txt
srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solved i have to use *.txt and process it and in mapping by getting the current file name i have to validate it and process the current dates file
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Baskar Raj,
Your requierement can be acheived by using the combination of UDF and ASMA(AdapterSpecifieMessageAttriburrtes) which helps us greatly in meeting dynamic filename rquirements.
1.You have to enable either FIlename,Time stamp or all the he ASMA in the sender side communication channel .
2.Write the UDF that gets the file name (CURRENT DATE.txt)during runtime that is available from enabling ASMA in sender communication channel .
3.change it to the name u want to modify (Replace with the new file name by getting time stamp from the ASMA attributes.
4. Map the UDF output to any of the target nodes(can be messagetype node MT_ur msg type name).
5.Enable ASMA on the target side also in that chek same file name.
Code to be writen in UDF is mentioned by sunilchandra in the below thread u jus need to avoid filename in that and use only date format it will acheive ur requrement.
Thanks,
Ram.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
You might be also interested in File Content Conversion in Communication channel if it is flat file. It enables you to convert te file to previously defined xml format.
Kind regards,
Radek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.