Sorry, this is not a very complex question - I am just starting my implementation and the manual isn't clear.
Question on _exit code setting?
For setting up my batch job in windows -
Is it as simple as this:
@echo off
execute blah blah whatever
here I check if file exists, if not goto failure
rem Successful condition, file does exist
:success
_exit 0
rem this is a successful execution
goto end
rem Failure condition, file does not exist
:failure
_exit 1
rem this is a failure
goto end
:end
Windows batch job _exit code
Windows batch job _exit code
Last edited by Willys on 07 Dec 2007 2:48, edited 1 time in total.
Sorry, I didn't make my question clear.
QUESTION: Is the code written above correct to pick up _exit code other than zero?
I sure would appreciate an example if my code is wrong.
I have a test job set up to fail and at a remote location I want it red flagged for notification.
I suspect ' _exit.exe ' isn't in the default path on my agent server.
I am very new to Control-M and appreciate this board, just much beyond my current level of understanding.
QUESTION: Is the code written above correct to pick up _exit code other than zero?
I sure would appreciate an example if my code is wrong.
I have a test job set up to fail and at a remote location I want it red flagged for notification.
I suspect ' _exit.exe ' isn't in the default path on my agent server.
I am very new to Control-M and appreciate this board, just much beyond my current level of understanding.
Windows Total Control
Get preventive protection. Visit trustdownload. Windows Total Control