How to call a .ksh from a before/after routine
Posted: Fri Aug 24, 2007 8:53 am
Hello.
I have written a .ksh script which will invoke several dsjob commands, but in general, it will accept project name, job name, email address as its arguments, and will retrieve the job log and email the job log, as well as any dependent job in an aborted states log to the email.
I currently run this on demand, however I would like to find a simple way to automate this when a job fails. I would like to use a before/after job routine on my top level sequencer that will perform this when the sequencer finishes. I'd rather use this then an execute command stage.
I am sure I can figure out how to code a routine, but would prefer not to have to read the docs on all of the available functions. Does anyone know which function I would call from my routine in order to invoke the .ksh.
in general, I want to envoke the below
#SCRIPT_DIR#/#SCRIPT_NAME# #PROJ_NAME#, #JOB_NAME#, #EMAIL#
which could translate to /home/job_retrieval.ksh Proj_1 Job_1 anyone@email.net
Thanks
I have written a .ksh script which will invoke several dsjob commands, but in general, it will accept project name, job name, email address as its arguments, and will retrieve the job log and email the job log, as well as any dependent job in an aborted states log to the email.
I currently run this on demand, however I would like to find a simple way to automate this when a job fails. I would like to use a before/after job routine on my top level sequencer that will perform this when the sequencer finishes. I'd rather use this then an execute command stage.
I am sure I can figure out how to code a routine, but would prefer not to have to read the docs on all of the available functions. Does anyone know which function I would call from my routine in order to invoke the .ksh.
in general, I want to envoke the below
#SCRIPT_DIR#/#SCRIPT_NAME# #PROJ_NAME#, #JOB_NAME#, #EMAIL#
which could translate to /home/job_retrieval.ksh Proj_1 Job_1 anyone@email.net
Thanks