External Target Stage
Posted: Tue Jan 16, 2007 5:10 am
Hi,
We have a generic datastage job that processes a variety of input files, and creates a set of output files. We need to ingest the output files into SQL database. We thought of using a C++ program to do the same. We have written a C++ program which takes a file as an input and opens a DB connection and inserts into the database. But when we try to invoke it as a DataStage routine, we get problems because of the ADO.DB connection errors, which I suppose are not recognised in Linux. I thought we can look at the External Target Stage and see how to use it but could not find any samples. Can anyone walk me through on how to use the External Target Stage? Does the program have to execute in the DataStage server itself, or it can be executed in, for example the db server? Any inputs are welcome.
We have a generic datastage job that processes a variety of input files, and creates a set of output files. We need to ingest the output files into SQL database. We thought of using a C++ program to do the same. We have written a C++ program which takes a file as an input and opens a DB connection and inserts into the database. But when we try to invoke it as a DataStage routine, we get problems because of the ADO.DB connection errors, which I suppose are not recognised in Linux. I thought we can look at the External Target Stage and see how to use it but could not find any samples. Can anyone walk me through on how to use the External Target Stage? Does the program have to execute in the DataStage server itself, or it can be executed in, for example the db server? Any inputs are welcome.