Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 4 Examples : C Samples of Tracker Event Client

C Samples of Tracker Event Client
This section contains examples of how to send an Unsolicited Alert message and a Notification message written in the C programming language.
Unsolicited Alert Message
 
The following sample illustrates how to send an Unsolicited Alert message to Hawk or Mainframe WebUI through a Tracker Server with an API call. The full version of the batch program is userhlq.C(SXK3NUEV).

 
#include "sxkhmsg.h"
char *crc;
char *message = {"...z/OS_Alert_Message"};
 
tal_Seg_Length = sizeof(Tracker_Alert) + strlen(message);
tal_Request = TRACKER_REQUEST_ALERT;
memcpy(tal_Identifier, "SXKALERT", 8);
strncpy(tal_Data, message, sizeof(tal_Data));
crc = SXKADSSI("SSID", <tal structure>, TRACKER_FUNCTION_MSG_A);

 
Notification Message
The following sample illustrates how to send a Notification message to Hawk or Mainframe WebUI through a Tracker server with an API call. The full version of the batch program is userhlq.C(SXK3NUEV).

 
#include "sxkhmsg.h"
char *crc;
 
tnf_Seg_Length = sizeof(Tracker_Notify);
tnf_Request = TRACKER_REQUEST_NOTIFY;
memcpy(tnf_Message_Number[0], “SXKNOTFY”, 8);
memcpy(tnf_Severity[0], “I “, 1);
strcpy(tnf_Issuer_Source, "SXK3NUEV");
strcpy(tnf_Issuer_Sub_Source, "PROGRAM");
strcpy(tnf_Host_Platform, "BATCH");
strcpy(tnf_Message_Text, "...z/OS_Notification_Message");
 
crc = SXKADSSI("SSID", <tnf structure>, TRACKER_FUNCTION_MSG_N);

 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved