on 08-08-2007 3:36 PM
Hi All.
I need to take all the incoming files from the one folder. I have 3 incoming folders now and this number would be more in the future. What is a most simple way to collect all the files in one folder? By the way, ALL folders would be created in one UNIX parent folder.
Thanks in advance for your answers!
Hey
>>I have 3 incoming folders now
and you will have your files in these folder,right?
see with sender file adapter you can pick up all the files in a certain folder by using . as the sender file name in communication channel,but as you have different folders(not different files) under one parent folder,you might not be able to pick up the files by just one sender adapter,you need to configure different sender adapter for all different folders.
lemme know if i understood your problem right.
Thanx
Aamir suhail
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey
its not possible to pick up files from different folders by using only one sender communication channel.
you might wanna create a Unix shell script which will copy all the files into one folder and then you can use . to pick up all these files.
make sure all the files have same message structure else you will get errors in mapping
Thanx
Aamir suhail
this blog shows how different files can be picked up from a folder
/people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
y don't u try using this by specifing 2 folders and c if ti works since both the folders are under the same parent dir
directory filename
-
parent/f1 .
parent/f2 .
Golynkin,
Read the source files from different directories using Advanced Selection for Source File option in file sender communicaiton channel. Check this weblog for some reference on this:
/people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
In this he has mentioned how to exclude the files in particular directories. You dont need to do that. Just read all the files in that directory.
Also if the interface is only to move then using this weblog you move the files to one folder:
/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Varun
please look at the assumption he made in the beginning itself
<i>all sender files must be in the same folder</i>
in the our case there are several folders and in those folders he has the files,the method wont work for him
best option as far as i know of is to write a shell script and collect the files in one folder first of all and then use one sender CC
Thanx
Aamir suhail
Hey
sure we can give that,but his case is not just limited to few directories,like he said in future he will be getting files from different folders and the number of folders will increase ,so do you think its advisable to keep changing the configuration of sender file adapter in Prd everytime he gets to pick the files from some new folder:)
Thanx
Aamir suhail
You cannot enter mask for Directory in the standard File Adapter.
Either you develop your custom adapter (custom module wouldn't have a good design, in my opinion) or use <i>Advanced Selection for Source File</i>, to give more than 1 source directory in the same sender adapter. As I've understood, he may have more folders added but it is not a "daily based" change. He'd have to change it only once in a while.
Regards,
Henrique.
Dmytro,
Are you talking about reading all files from incoming folder?
You can set file name as . in sender file adapter.It will pickup all files from incoming folder.
If not can you please give more details.
Nilesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm talking about coping all the files from several UNIX folders to one UNIX folder. It would be more folders in the future, but all the folders would be created in one parent folder. My goal is to copy all the files from all the folders to one folder automatically.
For now I have 3 folders from those I want to take files and I need to copy all files to another folder.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.