Writing a message when my job is Successful

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
LavanyaRamesh007
Participant
Posts: 42
Joined: Mon Apr 21, 2008 1:49 am

Writing a message when my job is Successful

Post by LavanyaRamesh007 »

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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

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.
Post Reply