on 02-10-2016 6:14 PM
Dear Experts,
I need to create a file with extension .txt.pgp. But when i give this extension in target file name in channel to produce TEST_Action_.dat.pgp with time stamp.
Result file name comes as TEST_Action_.dat20161030101030.pgp where as i want TEST_Action_20161030101030.dat.pgp
Can any body guide me please?
Thanks.
Sumeet.
Hello Sumeet,
This is normal behaviour of file channel, to achieve like
TEST_Action_20161030101030.dat.pgp,you need to have dynamic file config.
You can refer the links shared by Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello raghuraman.sritharan & manoj.khavatkopp ,
Please suggest how can I get the file name as "MI_GL_UNZIP_FILE_IN20201005-185821-221.xml.pgp" in target side by using variable substitution.
I have tried many ways but not getting the output.
that 'Date' variable is not working where as 'fname' is working fine for reading the interface name dynamically.
Hi Sumeet,
File adapter add the time stamp before last '.' symbol that is why you are getting the file name like above. If you want required format mentioned above you need to do in below ways.
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.