Batch Script to generate Error/Success Log for EPM Automate
Content
I am trying to generate Error/Success Log using the ERRORLEVEL of each EPM Automate Command ;
call epmautomate runAutomatch AWS_Trans_CriteriaSet_2
IF %ERRORLEVEL% EQU 0 (Echo runAutomatch completed Successfully for Match type AWS_Trans_CriteriaSet_2 at %time:~0,2%:%time:~3,2% hours >>%SuccessLog%) ELSE (Echo runAutomatch for Match type AWS_Trans_CriteriaSet_2 Failed at %time:~0,2%:%time:~3,2% hours >>%ErrorLog%) .
The ERRORLEVEL for this Command is 1 , however it is plotting as Successfully executed in the Success Log File.
Need urgent assistance.
Thanks,
Princess
Version
ARCS 21.04.620