Hi
I want to trigger mail using UNIX shell script by getting the job status of datastage job using dsjob command.
I tried to get jobstatus as soon as job execution is completed.
Here is what I am doing in shell..
executing job using dsjob command and in next step
i am trying to find the status of job using -jobstatus of dsjob
Here is what I observed
I am getting correct jobstatus only after few seconds of completion of Job when I see that updation in datastage Director. May be after 10 secs)
But immediately after completing the job execution, I am still getting prev. execution status of job. only if i try to find jobstatus when it get updated in director i get the correct status using dsjob.
My question is, can I get jobstatus correctly as soon as execution is completed and how. Thanks. Any help is really appreciated.
dsjob question
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: