cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding file name in the target system

Former Member
0 Kudos

Hi..

I have got a file name releated problem in XI.

I have configured a flow in XI system using proxy and after mapping process creates a output file in target machine as a "Test<Date-Time Satmp>.dat".

Test is the file name and adding date-time stamp to that.

I am using file adapter.

Now my requiremnt is that instead of "<b>Test<Date-Time Satmp>.dat</b>", I need to create a file as

<b>"<Date-Time Satmp>Test.dat</b>" .

Please let me know if anyone has come across similar situation.It is urgent.

I know there is an option to create dynamic file names in file adapter but i think it isn't enought to solve my problem.

Accepted Solutions (0)

Answers (3)

Answers (3)

STALANKI
Active Contributor
0 Kudos

I think you can pass the variable in the message mapping which has the date format and genertae file name using vraible substitution method.

Former Member
0 Kudos

Hi jahangir laskar,

For the Receiver communication channel, (file adapter)

Enter in the fields

1. Under <b>File Access Parameters</b> section,

<i>File Name Scheme : test.dat</i>

2. Under <b>Processing Parameters</b>

<i>File Construction Mode : Add Time Stamp</i>

This should work, i just tested it out.

Srinu.

former_member184154
Active Contributor
0 Kudos

Try to put something like

<b>.test.dat</b> as filename, and setting the "add timestamp" option.

Should result in something like YYYYMMDDHHmmSS.test.dat

Can it fit?

Let me know if it works.

Regards,

Alex

former_member184154
Active Contributor
0 Kudos

The best I obtained is to put

.test

as filename, which would generate a YYYYMMDD-HHmmSS-mmm.test

On this file probably you can play a little bit with operating system command like mv or ren.

Hope that resebmles what you're trying to achieve.

Alex

Former Member
0 Kudos

Hi..

Thanks for the reply.

But still file name(Test) is preceeding the date-time stamp.

Regards

Jahangir

Former Member
0 Kudos

Hi again,

As an example for file adapter - test.dat.

You would get something like this show below as file names

test20060109-164434-738.dat

test20060109-164435-490.dat

test20060109-164451-144.dat

test20060109-164451-932.dat

i hope this is what u wanted.

Srinu.