Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command tasks - returning errors 1

Status
Not open for further replies.

bsellick

Programmer
Jul 26, 2001
24
0
0
CA
Am making use of command tasks in a workflow to run shell scripts in AIX/Korn shell.

I'm not much of a korn shell expert but have found sample code that tests the last run command status ($?). If not zero then I've coded "exit 1".

In testing this, I see in UNIX that the return code is 1; however, it appears that the command task in the workflow does not see an unsuccessful return value - it always succeeds.

Anyone have this experience and get around it?

Informatica install is v7.1/AIX

Thanks,

- Brad
Superpages.ca
 
You need to set the command object to fail if the command script fails. See the fail if previous checkbox (or something like that) on the main tab, I think (it's been awhile). This will cause the workflow to fail if it's checked and the command fails. Note: the default for sessions, etc. is not to fail the workflow.

"I think we're all Bozos on this bus!" - Firesign Theatre [jester]
 
Thanks ArtieChoke. Works quite well now!!
 
Cool! :)

"I think we're all Bozos on this bus!" - Firesign Theatre [jester]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top