on 07-09-2009 10:53 AM
Hello,
In a FILE to FILE scenario we would like to change the name of the file.
let's say filename on the sender side is 'datafile' and we would like it to be 'infodatafile' on the receiver side.
So add the 'info' string to the filename.
Anybody knows if this is possible ?
Thanks
hi,
>>>Anybody knows if this is possible ?
sure - you can change the filename in the mapping - using the dynamic configuration
all in standard
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Michel,
Option of message id is also available in place of timestamp..
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Michel,
At the file name scheme at receiver side...Use "Infodatafile" with file create mode plus timestamp..
this will add time stamp at the end of Infodatafile each time when ever file will be created.
this will be dynamic...
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks all for the replies
it has to be a bit more dynamically than this
the filename on the sender side can be anything, we just have to add a string (let's say 'info') to the filename on the receiver's side
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Michel,
directly on the file name scheme...no need to use variable substitution for this...
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michel,
Please let us know the exact scenario ?
You can simply hard code the file name, if you want to create the file name at receiver side as "infodatafile" only .
and "datafile" at sender side...
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manisha,
That's what I mean.
Where should I do that in the receiver comm. channel ?
On the tab 'target' there is a field 'file name scheme' ?
Or on the tab advanced there is a flag below 'Variable substitution' ?
Thanks for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I guess ur just doing File to File scenario without IR configuartion..in that case ID when u r creating communication channel for File receiver there itself in file name scheme u need to put "infodatafile"
and in sender file communication channel put file name scheme as "datafile"
so file with datafile is picked up and file with infodatafile is created.
Regards,
Manisha
Hi,
U mean tht u will pick file with name "datafile" and same file u will replace with different name at receiver side?
then in receiver communication channel u need to specify "infodatafile".
I don't know whether i have understood whatever u want to say
Regards,
Manisha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for your reply, but we don't use a mapping for this
any idea's on how to do this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michel,
develop a custom adapter module, access the filename by using getMessageProperty, modify the filename as per ur requirement and set the filename back by using setMessageProperty
check the adapter specific parameter and filename in both the sender and receiver CC
regards,
Chandra Shekhar.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
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.