Using DataStage, I have to read a sequential file, which contains one sql statement, run that sql statement and output the results in a sequential file.
This is what I've tried : Using an Oracle connector, I simply set the option to "Read Selected statement from File", I entered the location of the file that contains the SQL stmt, then I set the "Runtime column propagation" and finally created an output sequential file. This worked great, the output file with the select stmt data results was created properly.
But now, the specs have changed and it is no longer an oracle connector I need but an ODBC connector which does not have the convenient "Read Selected statement from File" option.
I was thinking of doing the following :
- Use a sequential file stage to read the file content
- Move the file content to a variable
- Pass the variable to an ODBC connector
- ODBC connector would read the variable and run it
- Pass the data to a sequential file.
The parts I'm having trouble with is part 1 to 4. I'm pretty much a beginner with datastage, if anyone can provide me with guidance it would be greatly appreciated.