cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple files from same source directory

Former Member
0 Kudos

HI ,

  I want to select multiple files from same source directory. using  Advance selection for source file we can same source directory and specify other files .Is it the correct way or using option addition files we can achieve this ?

CC parameters:

Eg:  I want to send abc1.dtd,abc2.dtd,abc3.DTD,abc4.dtd files from same source directory

source directory : /source

      file name : abc1.dtd

under advance selection for source file :

Directory  FilenameMask

/source    abc2.dtd

/source    abc3.DTD

/source    abc4.dtd

is it the way to process all 4 files from source directory?

i cant put abc*.dat as other files also will be there in source folder and i want to send these 4 files only and if any file named with in these 4 it need to process. please suggest is it the correct way?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Aman,

We can pick multiple files from the same directory using  Advance selection for source file.

Hope the following will help you.

Thanks,

Durga.

Binod_Thakur
Participant
0 Kudos

Thanks, It worked.

Answers (1)

Answers (1)

ambrish_mishra
Active Contributor
0 Kudos

Hi,

Ideally Advance selection option is used for picking files from multiple source directories.

Does your source directory has files, you want to exclude? If not, use abc*.DTD ...simple!

Ambrish

Former Member
0 Kudos

I want to process abc1.dtd,abc2.dtd,abc3.dtd,abc4.dtd only and rest need not to process.

so i want to achieve this using Advance selection option. is it the correct option?

some times files will come as abc1.DTD,abc2.dtd also .

i cant put abc.* as other files which having same file name but diff extensions as .gz so i cant able to use it.

will using advance selection option we can get this or any other option?

ambrish_mishra
Active Contributor
0 Kudos

Regarding advance selection, it will work...

If you want to exclude files with different extensions, abc*.dtd would work. Ideally you should be using file name mask to handle such requirements.

Hope it helps!

Ambrish

Former Member
0 Kudos

so one file name under channel parameters and rest 3 under advance selection. is it the way we need to configure.

another question if we say file name as abc3.DAT(in case sensitive mode) comes in between sequence PI will pick it up right? as we are mentioning .DAT config under advance selection.

another if we get only one file out of 4 we configured it will process that one only?

ambrish_mishra
Active Contributor
0 Kudos

so one file name under channel parameters and rest 3 under advance selection. is it the way we need to configure.

AM - Yes

another question if we say file name as abc3.DAT(in case sensitive mode) comes in between sequence PI will pick it up right? as we are mentioning .DAT config under advance selection.

AM - File names are case sensitive, PI wont pick up abc3.DAT if abc3.dat is mentioned. You can have another parameter for this case.

another if we get only one file out of 4 we configured it will process that one only?

AM - yes

Cheers

Ambrish

Former Member
0 Kudos

as am mentioning under advance selection as below then it will pick it up?

source directory: /source

filename :abc1.dtd

advance selection

directory  filemask

source    abc2.dtd

source    abc3.DTD

source    abc4.dtd

hope it will work if files will come in this format ?

Q.this is different scenario

what is the configuration if files comes in both formats .dtd and .DTD . with out using abc.* as i mentioned earlier with this other files will also picked up.

what need to be mentioned under file name parameter?

ambrish_mishra
Active Contributor
0 Kudos

as am mentioning under advance selection as below then it will pick it up?

source directory: /source

filename :abc1.dtd

advance selection

directory  filemask

source    abc2.dtd

source    abc3.DTD

source    abc4.dtd

hope it will work if files will come in this format ?

AM - yes...

Q.this is different scenario

what is the configuration if files comes in both formats .dtd and .DTD . with out using abc.* as i mentioned earlier with this other files will also picked up.

what need to be mentioned under file name parameter?

AM - if files come as both .dtd and .DTD, both will be picked up.

Ambrish

Former Member
0 Kudos

what need to be mentioned under file name parameter?

AM - if files come as both .dtd and .DTD, both will be picked up.

aman- what is the configuration to do to pick up files comes in both formats i.e .dat and .DAT

is we need to do configuration like below

under file name : abc*.dat

advance options

source  abc*.DAT

is it correct to pick up both formats.

as I checked when i mention under file name parameter as abc*.dat and files abc*.DAT was not picked up and abc*.dat files were processed.

note: i dont want to under file name as abc*.*

please suggest

Former Member
0 Kudos

Files will not pick in case of both .dtd and .DTD based on the file name only file will be picked as file name is case sensitive. you need to add one more parameter for .DTD.

source directory: /source

filename :abc1.dtd

advance selection

directory  filemask

source    abc2.dtd

source    abc3.DTD

source    abc4.dtd

source    abc4.DTD

source    abc2.DTD

source    abc3.dtd

source    abc1.DTD

Thanks,

Durga

ambrish_mishra
Active Contributor
0 Kudos

you can use abc*.dat in file name and abc*.DAT in advance selection file name parameter.

Ambrish