I have an Oracle Connector stage that SELECT from Oracle database, and write the result to a Sequential File.
How can I only write to the Sequential File if the SELECT statement returns something (if SELECT statement doesn't return anything, don't write to the Sequential File) ?
Thank you.
How to only write to Seq. File if SELECT return something ?
Moderators: chulett, rschirm, roy
Technically it won't write anything to the file so assuming you mean don't create the file... and that's not an option. You either need to delete it post-job if it is "empty", that or put a pre-check in place and only run the job when there is actually data to write to the file.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers