In my project i have senario like i have to pick all file from DS directory to job.
Sppose in load directory i have 4 files which may be of different formate ,i have to pick all files to my job,Please advice me how to do this?
how to pick all files from DS load directory to job .
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 77
- Joined: Tue Apr 14, 2009 4:03 am
-
- Participant
- Posts: 77
- Joined: Tue Apr 14, 2009 4:03 am
.chulett wrote:Normal answer would be the Folder stage, but first tell us how you propose to process multiple files with different metadata in a single job. That answer will help drive the proper solution. ...
Let me explain my requirement.
Sheduler will pick multiple files from different server (which may be of different format) and put it into DS server (say in load directory).
In datastage side i have to pick all files form load directory in my job(as single column record ) ,i will have one refrance table where i have field level defination of all files .i will have to do maping between input files and refrance table and put these records into sql server( for each file i have seprate tabl in sql server).
Please advice me how to do this,It will be good for me if you help me to design a metadata for refrance table also .
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
If the files are of different format, how do you propose to process them all (parse them) in the same job? You are correct that you can read them using a single VarChar column, but what happens after that? Is there some trigger in the data that you can use to indicate how to parse that particular record type?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 77
- Joined: Tue Apr 14, 2009 4:03 am
yah it will give problem because in my job i will have to do header and trailer validation,which will not possible with single varchar column.Please advice me how to proceed.ray.wurlod wrote:If the files are of different format, how do you propose to process them all (parse them) in the same job? You are correct that you can read them using a single VarChar column, but what happens after ...