Message Handle Warnings at Sequence Job Level

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
ravij
Premium Member
Premium Member
Posts: 170
Joined: Mon Oct 10, 2005 7:04 am
Location: India

Message Handle Warnings at Sequence Job Level

Post by ravij »

Hi All,

I am using Command Acitivty in Sequence job, in that using ls command to listing the File. If it does not find a file in the mentioned path, its giving one warning message like
Command ls -1 did not finish OK, reply = '2'
.
Because of the warning, sequence job getting aborted. I want to handle this message but i didn't find any option to do so.
Can some one help me how to handle or restrict the warning.

Thanks in advance.
Ravi
Ravi
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There are no "message handlers" for Sequence jobs, if that is what you are looking for. One option is to turn off the "automatically handle" compilation option as that is what is aborting the sequence - it handles all non-zero return codes as failure. However, if you handle the failure then it won't bother to. Use two triggers from the Command stage, one "OK" and one "Otherwise" and that should give you full control over the fate of the command.

This is documented, btw.
-craig

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