When ever my DS jobs runs successful I need to give out a message.. This messgage shud be displyed by creating a file in C: drive..
The file must contain the value "JOBNAME is success"
where as JOBNAME is the name of job
Writing a message when my job is Successful
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 42
- Joined: Mon Apr 21, 2008 1:49 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Use an after-job subroutine to test the interim status of the job and to write your file based on that condition.
Code: Select all
If DSGetJobInfo(DSJ.ME, DSJ.JOBINTERIMSTATUS) = DSJS.RUNOK
Then
Call DSExecute("UNIX", "echo " : DSJobName : " is success. > filepath", Output, Code)
End
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.