cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced selection for source file

Former Member
0 Kudos

Hi,

Requirement: One source directory, multiple file names. File needs to be picked up from source directory and send to target directory with same name as source file name.

Source file name pattern sample: AP5_X_yyyyddmm, A35_X_yyyyddmm, AP5_Y_yyyyddmm, AP5_Y_yyyyddmm.

Target file name should be :AP5_X_yyyyddmm, A35_X_yyyyddmm, AP5_Y_yyyyddmm, AP5_Y_yyyyddmm

Can we define multiple place holders as :

            

Directory     File Name MaskExclusion Mask
\\Source AP5_X*.txt, A35_X.txt, AP5_Y*.txt, AP5_Y*.txt

When I tried for single place holder, the scenario was working but when I tried adding multiple place holders it was not working.

How can we achieve the above scenario?

Thanks,

Vertika

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

>>Can we define multiple place holders as :

I believe u are doing this becoz the folder from which u are picking files could have multiple files and u want to pick files having certain naming convention? right?

If yes, then use option 1 as suggested in the blog

If not, then just put "*" in the file name, it will suffice.

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi Amit,

Thanks for reply.

Yes you understood it right.

I am able to achieve this now. The only change that I did is instead of giving all the placeholders in same line I have given it in different lines and this is working now.

Sender Adapter Configuration: Checked Advanced selection for source file and used Adapter specific message attributes to keep same file name as source file name.

File Name MaskFile Name MaskExclusion Mask
\\SourceAP5_X*.txt
\\SourceA35_X*.txt
\\SourceAP5_Y*.txt
\\Source A35_Y*.txt

I am closing this thread now.

Thanks,

Vertika

Former Member
0 Kudos

Yaa, that's the correct way to do it (which was also shown in the blog above)