handling error of Unix script in DS Before-job subroutine
Posted: Thu Jun 15, 2006 11:43 pm
Hi Folks,
I'm trying to use Unix shell script before-job subroutine using ExecSH
I'm not fluent with unix scripting
Background:
I have a server job that contains a Sequential File,Transformer and ODBC stage.It simply loads data from txt file to a table. My script creates Index on a column.It works fine. I have used Before-job subroutine - ExecSH for this script
QUESTION::
Now if at any time my script fails or it cant create index before job I want to stop job execution.
In my case even if index already present and my script cant create it(it should not) the job runs succesfully.
In essence is there any option in DS to run job after sucessful execution of script ?
or it should be handled in script only and How do I do that??
Any ideas are most welcome, thanks...
I'm trying to use Unix shell script before-job subroutine using ExecSH
I'm not fluent with unix scripting
Background:
I have a server job that contains a Sequential File,Transformer and ODBC stage.It simply loads data from txt file to a table. My script creates Index on a column.It works fine. I have used Before-job subroutine - ExecSH for this script
QUESTION::
Now if at any time my script fails or it cant create index before job I want to stop job execution.
In my case even if index already present and my script cant create it(it should not) the job runs succesfully.
In essence is there any option in DS to run job after sucessful execution of script ?
or it should be handled in script only and How do I do that??
Any ideas are most welcome, thanks...