cancel
Showing results for 
Search instead for 
Did you mean: 

Retain file to 30 days before archiving it.

Former Member
0 Kudos

Hi Folks,

I am having a File to File scenario. I have to retain the file in source directory for 30 days and then archive it. Please let me know how this can be achieved through PI. Or is these any alternate solution?

Thanks,

Punit

Accepted Solutions (1)

Accepted Solutions (1)

former_member181962
Active Contributor
0 Kudos

Hi Punit,

I think it is better off you do it at the OS level, perhaps using some OS level archiving scripts, rather than doing it using PI.

Regards,

Ravi

Former Member
0 Kudos

Hi Ravi,

Thanks for the reply.

What script should I write and where should I write it?

Thanks,

Punit

former_member181962
Active Contributor
0 Kudos

Hi,

Its not a job a PI developer. It is usually done by the Basis.

Its called Shell scripting. It also depends upon the OS that your PI system uses.

Check with your Basis Team.

Regards,

Ravi

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos

>

> Hi Folks,

>

> I am having a File to File scenario. I have to retain the file in source directory for 30 days and then archive it. Please let me know how this can be achieved through PI. Or is these any alternate solution?

>

>

>

> Thanks,

> Punit

if you retain the file in the source directory, then during the next polling of the file adapter it will pick the file again.

Wouldnt that be a problem?

why is this a requirement?

Former Member
0 Kudos

Hi Folks,

Thanks for the helping me in arriving to the solution.

I will move to file to a temporary location after reading it. BASIS will write a OS script to archive the file from that location.