Focal Point
invoke data migrator from java

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

June 06, 2008, 08:33 AM
<Ranga>
invoke data migrator from java
can any one tell how to invoke a data migrator process from Java
June 12, 2008, 11:10 AM
Kerry
Hi Ranga,

Did you open a case with Customer Support Services regarding this issue? Have you got a chance to review the suggested online document:

Starting Flows With CMASAP

Hope it helps. Smiler

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
June 12, 2013, 10:55 AM
benicely
I hate to reopen such an old post, but I have the same exact question.

Should I open a ticket instead?


WebFOCUS 7.6
Windows, All Outputs
June 14, 2013, 09:27 AM
AJ
Hi Benicely,

For this issue it would be best to open a case with technical support.

Thanks,

Alan


Alan Boord
June 14, 2013, 09:29 AM
AJ
Hi Benicely,

I meant to say Information Builders Customer Support Services.

Thanks again,

Alan Boord
Focal Point Moderator
June 14, 2013, 09:31 AM
benicely
Thank you AJ. I will open a case.


WebFOCUS 7.6
Windows, All Outputs
June 14, 2013, 12:44 PM
benicely
The link by Kerry is for an older version. If anyone else has this problem, the solution, for now, is to use Java to call the CMRUN.exe file. I'd post a link to the documentation, but I'm not sure if that's allowed.


WebFOCUS 7.6
Windows, All Outputs
June 25, 2013, 11:39 AM
<Kathryn Henning>
Hi benicely,

For documentation, you can refer to the topic name in the "___ chapter in the ___ manual", for example. Or, if you prefer, you can provide the DN (document number).

Cheers!

Kathryn
July 04, 2013, 09:17 AM
dhagen
You can connect to any iDM server using JDBC. The JAR is jlink.jar, the driver: ibi.jdbc.EdaDriver, url example: jdbc:eda://localhost:8116;server=LOOPBACK

You will have to call a custom stored proc that will then will invoke the CMASAP for you. If you wish to have the stats returned as an answerset, then the following will work:

-* Proc name:  runflow.fex
-* Parameter names:
-*   1 - data flow name
-*   2 - application directory
-*   3 - parameters to be passed to the flow
-*       Must be passed as key value pairs seperated by commas
-*       e.g. COUNTRY=ENGLAND,CAR=JAGUAR

-DEFAULTH &1 = 'NONE'
-DEFAULTH &2 = 'baseapp'
-DEFAULTH &3 = ' '

-* following just to prevent prompting
-DEFAULTH &&DEP_1_RC = '99'
-DEFAULTH &&DEP_1_ID = 'UNK'

-* ensure a flow is requested
-IF &1 EQ 'NONE' GOTO :SKIP_ALL;

-* set params
-SET &PARAMS = IF &3 EQ ' ' THEN ' ' ELSE ',' || &3;

EX CMASAP REQ_NAME=&1, CM_ASYNC=OFF, APPDIR=&2, DEP_ALIAS = DEP_1 &3;
-RUN

-TYPE  (ICM18039) DEP_1 &1 Return Code = &&DEP_1_RC 
-*	
-* call the stats
 EX ETLSM JOBNAME='&&DEP_1_ID'
-RUN

-:SKIP_ALL
  



"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott