Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [SOLVED] Handling exit command from batch file using Data Migrator Flow
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Handling exit command from batch file using Data Migrator Flow
 Login/Join
 
Member
posted
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
 
Posts: 9 | Registered: December 09, 2016Reply With QuoteReport This Post
Guru
posted Hide Post
To stop processing use
-SET &&KILL_RPC='Y';

Please see the DMUG section "Reference: Control Variables" for details.
 
Posts: 369 | Location: New York City | Registered: May 03, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [SOLVED] Handling exit command from batch file using Data Migrator Flow

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.