Executing Unix script in Execute stage of Sequence

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
vishu19aug
Participant
Posts: 39
Joined: Mon Feb 13, 2012 1:30 pm

Executing Unix script in Execute stage of Sequence

Post by vishu19aug »

Hi,

I am using the 'execute stage' of sequence and running a invoking a shell script in this. The script failed -
xxxx_Trend..JobControl (@execute_send_mail_script): Executed: /opt/app/abc.sh "vg189d@xx,com" "11-OCT-2012" "04-aug-2012" "27-aug-2012" "20-SEP-2012"
Reply=127
Output from command ====>
SH: /opt/app/abc.sh: No such file or directory

but still the sequence said -
11:56:51: execute_send_mail_script finished, reply=127
11:56:51: Sequence finished OK

How can the error be captured in sequence? Please help

Thanks,
Vishal
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sure, that can be handled by a specific trigger from the stage to your failure processing or you can enable "Automatically handle activities that fail" in the Sequence.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply