RQ_TBLST - 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
dita:id
B035-3204
Product Category
Analytical Ecosystem
#include <tmsmapi.h>
//initialize Api
pCtx = TM_Init();
//Create Event placeholder.
pRequestTableStateEvent = MSM_CreateWEvent(pCtx,NULL);

pRequestTableStateEvent->eventType=RQ_TBLSTEVENT;//set event type
pRequestTableStateEvent->szTDPID=L”sampleTDPID”;//set TDPID			
pRequestTableStateEvent->iStateCode=10;//set statecode
pRequestTableStateEvent->szApplicationId=L"SampleApplication";//set application id
MSM_AddWDatabase(pCtx,pRequestTableStateEvent,L"SampleDatabase");//Add multi-arg database
MSM_AddTable(pCtx,pRequestTableStateEvent,L"SampleTable");//Add multi-arg table
status=MSM_SendWEvent(pCtx,pRequestTableStateEvent);//send event

MSM_FreeAndClearWEventMembers(pCtx, pRequestTableStateEvent);
//Free event. Do not forget to call this

MSM_FreeWEvent(pCtx, pRequestTableStateEvent);

//Free Context.do not forget to call this.
TM_Free(pCtx);