cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP senderadapter. Generic Filename

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Carlsen,

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

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thank you all.

This works.:  .*ABBV.*

I'm very pleased.

Regards

Per Arne

former_member186851
Active Contributor
0 Kudos

Hello,

Try this in the Filename parameter

*ABBV*.DAT