Skip to Content
Former Member
Jan 29, 2011 at 10:34 AM

Output File Naming Convention


Hi PI Experts,

I have a requirement to do the following :

---Pick a pdf file from a location and deposit to another location.

Some roadblocks :

1) The target filename should be the same as the source file name.

2) The source file will always have .pdf extension in uppercase or lowercase. The outfile file should have .pdf extension in lowercase. Eg. the source file is <attach.PDF> or <attach.pdf>, the target file should always be <attach.pdf>

3) A timestamp should be attached between the filename and the extension with an underscore separating them. Eg. the source file is <attach.PDF>, the target file should be <attach_timestamp.pdf>

Summary : A file is deposited as <invoice.PDF>, the output file should be <invoice_timestamp.pdf>, a file is deposited as <invoice.pdf, the output file should be <invoice_timestamp.pdf>

Note : I am not using any mapping objects as this is a direct file pick and deposit scenario i.e nonexistent_interface.

Please advise on what is the suggested solution and how to perform this functions. As I am a beginner to PI, it would be great if you could provide a clear and easy to understand solution.

Thanks in advance.