Skip to Content
avatar image
Former Member

Gather multiple files according to file name

Hi experts,

I have a question about the file sender adapter.

Is it possible to gather multiple files from a directory according to file name. For example, I have 3 files:

- 10000-20120827.DAT

- 10000-20120826.DAT

- 10001-20120827.DAT

Can I configure the interface in a way it bundle all the files starting with the same 5 first characters? (So it bundles the first two files)

I hope the question is clear enough. If not, let me know.

Thanks,

Koen

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 27, 2012 at 10:55 AM

    Hi Koen,

    this is not possible in PI standard,

    You can

    - create an adapter module. The adapter has to read files with same starting file name into one message.

    - create a Business Process and make use of ASMA header field "FileName" in mapping time.

    - create a operation system command before processing. The script will bundle the files with same first file name characters. Assumedly the most easy solution.

    Regards,

    Udo

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 27, 2012 at 10:38 AM

    Hi,

         From what I understand, you want to package all files which start with the same name sequence into a single message in PI.

    This is only possible using BPM. The file adapter will always create one message per file.

    You can give multiple file names to retrieve in the sender adapter, but each file will always create a single message.

    Regards

    Add comment
    10|10000 characters needed characters exceeded