Reputation: 75
Currently there is a job in SQL server that is scheduled to runs several times a day.
The SQL Job builds a file for the DataStage job that is scheduled shortly after the SQL server job, problem being that if the SQL job hasn't finished building the file, the DataStage job fails.
Is there a trigger/query that can be added on SQL server to trigger DataStage job?
Upvotes: 0
Views: 897
Reputation: 851
Have the SQL Server job create two files, the real file then a second "trigger" file. It can even be empty. DataStage detects the existence of the trigger file, which was not created until the real file was complete, then processes the real file.
Upvotes: 0
Reputation: 4005
Multiple solutions are possible:
Upvotes: 1