@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
July 21, 2020, 09:59 AM
Clif
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.
N/A
July 21, 2020, 09:50 PM
nox
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.