16.20 - START - Teradata Ecosystem Manager

Teradata® Ecosystem Manager API Reference

Product
Teradata Ecosystem Manager
Release Number
16.20
Published
December 2020
Language
English (United States)
Last Update
2020-12-23
dita:mapPath
loa1512743917841.ditamap
dita:ditavalPath
ft:empty
#include <tmsmapi.h>
//initialize Api
pCtx = TM_Init();
//Create MSM_UofW placeholder.
pUOW=MSM_CreateUOW(pCtx);
//Create Event placeholder.
pStartEvent = MSM_CreateWEvent(pCtx,pUOW);
pStartEvent->eventType=STARTEVENT;//set event type
pStartEvent->szTDPID=L”sampleTDPID”;//set TDPID
pStartEvent->szResourceId=L”sampleResId”;//set resourceid MSM_AddWResourceType(pCtx,pStartEvent,L”sampleResType”);	//Add multi-argument resourceType
pStartEvent->szJobStep = szJobStep;//set job step
status=MSM_SendWEvent(pCtx,pStartEvent);//send event
MSM_FreeAndClearWEventMembers(pCtx,pStartEvent);
MSM_ClearUofWMembers(pCtx,pUOW);
//Free event. Do not forget to call this
MSM_FreeWEvent(pCtx,pStartEvent);
//Free UnitOfWork. Do not forget to call this.
MSM_FreeUOW(pCtx,pUOW);
//Free Context.do not forget to call this.
TM_Free(pCtx);