Skip to Content
avatar image
Former Member

SFTP senderadapter. Generic Filename

Hi.

I have an issue where I should pick up an spesific file on an external SFTP-server.

In the Inbox-directory I can see this files.

P.00821757131.002.AXXB.46535420150909-121119-338.DAT

P.00821757131.002.ABBV.46535420150909-121119-338.DAT

P.00821757131.002.ABBA.46535420150909-121119-338.DAT

P.00821757131.002.ABBV.46535420150909-121119-338.DAT

I just wont to pick up the files that contain 'ABBV' in the filename.

Any ide how to set up the filestring in the adapter ?

Thanks

/Per Arne

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 09, 2015 at 01:25 PM

    Hi Carlsen,

    Use .*ABBV.*.DAT in the filename parameter.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 09, 2015 at 01:35 PM

    SFPT adapter requires regular expresion. Use the combination of . (any value) and * (repeatingly) for example: .*ABBV.* Here some information: http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#sum

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 09, 2015 at 01:21 PM

    Hello,

    Try this in the Filename parameter

    *ABBV*.DAT

    Add comment
    10|10000 characters needed characters exceeded