Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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: 137 | Registered: August 29, 2019Report 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.


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report 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: 137 | Registered: August 29, 2019Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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-2020 Information Builders