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  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]cmrun.bat is not running my flow
Go
New
Search
Notify
Tools
Reply
  
[SOLVED]cmrun.bat is not running my flow
 Login/Join
 
Platinum Member
posted
Hi

I have following cmrun.bat:
 

@echo off
@SetLocal
Set EDAHOME=C:\ibi\srv82\home
Set EDACONF=C:\ibi\srv82\wfs
Set PATH=C:\ibi\srv82\home\bin;%PATH%
Set EDACS3=C:\ibi\srv82\wfs\etc\odin.cfg
C:\ibi\srv82\home\bin\cmrun.exe S=LOOPBACK, USER=wf_admin, p=****, R=hp_update, APPNAME=order_isbg, W=0, MULTI=Y, V=\"%8\"

if errorlevel 20 goto rc20
if errorlevel 16 goto rc16
if errorlevel 12 goto rc12
if errorlevel  8 goto rc8
if errorlevel  4 goto rc4
echo Request OK
goto end
:rc20
  echo (20) Request timed out
  goto end
:rc16 
  echo (16) Request failed in execution
  goto end
:rc12
  echo (12) Request not found
  goto end
:rc8
  echo (8) iWAY API Error
  goto end
:rc4
  echo (4) Invalid input parameter
:end
echo Return Code is: %ERRORLEVEL%
@EndLocal


 


and this is my "hp_update" flow concept:

Excel synonym to Hyperstage's table.

In DMC do Run fine with this flow, some records do added into Hyperstage's table.
So I clear out the table's records to test cmrun.bat.

and when I ran cmrun.bat in cmd, it show:

  
C:\Order_Source>cmrun.bat
 Run (    1) Connecting to 'LOOPBACK' as 'wf_admin'
 Run (    2) DM Manager Server: Version 8, Release 2
 (ICM18533) Request Submitted: order_isbg/hp_update
 (ICM18762) Job ID: 20200721104437_22a1d466
Request OK
Return Code is: 0




As the result show in cmd I assume this batch is run success, but when I check my result in DMC, my Hyperstage's table still empty.

So what went wrong?

**I ran this cmrun.bat before and it success as expected, but now I try run on new flow, it is not work as expected.

This message has been edited. Last edited by: nox,


WebFOCUS v8.2.06 , Windows
 
Posts: 103 | Registered: August 29, 2019Reply With QuoteReport This Post
Guru
posted Hide Post
A return code of zero when you don't wait for completion only means that the flow was submitted successfully. You need to look at the log to see what went wrong.
 
Posts: 395 | Location: New York City | Registered: May 03, 2007Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Hi Clif,

I figure out the problem. After I set the job to wait 1min. it show up RC=18708, and I notice cmrun.bat is using webFOCUS to do iWay's job, which is why RC = 18708. So I edit the set path to iWay's it work fine now. Thanks.


WebFOCUS v8.2.06 , Windows
 
Posts: 103 | Registered: August 29, 2019Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]cmrun.bat is not running my flow

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