cancel
Showing results for 
Search instead for 
Did you mean: 

Reducing the time interval in file Adpt to write a flat file at a location

Former Member
0 Kudos

Hi All,

I hav a scenario where i hav to write a flat file (<b>XXX.txt</b>) to a location. b4 doing that, i hav to check whether <b>XXX.txt</b> already exists or not. If it doesn't exists then i hav to write the <b>XXX.txt</b> file there. if it already exists, then i hav to wait until that <b>xxx.txt</b> file gets deleted.

In the receiver file adapter v hav an option <b>file construction mode = <u><i>create</i></u></b> which does the same thing. but the problem here is it is taking too long (<b>more than 5 min</b>) which is not at all acceptable in my case (it is ok <b>if it takes 1 min</b>).

Is there any way to <b>reduce the time interval</b> using the same option?

Or do we hav any <b>work around solution</b> for acheiving the same scenario?

any help wud b appreciated.

Thnx in Adv.

Anil

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi, Anil

Sorry in advance if misunderstood your scenario.

For the workaround, how about using OS command function of file adpater

after creation?

For example, let's assume you configured OS command like YYY.bat which

moves or do whatever you want to the file XXX.txt.

If so,

- XI writes XXX.txt.

- After all the content of XXX.txt is written, OS command YYY.bat will

be called by XI.

- YYY.bat move XXX.txt to another folder or do something whatever you need.

- And next time, another XXX.txt will be written and move to other folder.

At least, this strategy will reduce unnecessary waiting time.

Best Regards.

Former Member
0 Kudos

Anil

As far as my knowledge goes I think it is not possible because we are not going to do anything from our end. XI is doing processing and creating a file for you. But you might be sending a large file at a time. So you have to improve the performance in your scenario. You check this urls on how to improve performance in XI:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/70ada5ef-0201-0010-1f8b-c93...

---Satish