Focal Point
[SOLVED] Handling exit command from batch file using Data Migrator Flow

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/2897034986

February 27, 2018, 10:11 AM
mayur
[SOLVED] Handling exit command from batch file using Data Migrator Flow
Hi there,

i am trying to execute one batch file, (which contains only unexpected exit or we can say non zero exit i.e. EXIT -99 ...) using Data Migrator flow ...it should display me exit code and should say DMC flow fail as batch file return value is non zero ...so i putted code in DMC flow as below:

-DOS exit_bat.bat > exit_log.log
-TYPE exitreturn =:: &EXITRC
-IF &EXITRC EQ 0 GOTO :NEXT1 ELSE GOTO :ERROUT;


-:NEXT1

-TYPE EXECUTION COMPLETED
-EXIT

-:ERROUT
-TYPE ERROUT
-SET &&CM__RETURN = 1;
-EXIT


exit_bat.bat file contains only

EXIT -99

Can anyone help me out on this...
Thank you.

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8
Windows, All Outputs
February 28, 2018, 10:53 AM
Clif
To stop processing use
-SET &&KILL_RPC='Y';

Please see the DMUG section "Reference: Control Variables" for details.