Using the Publish Event Interface

The Publishing Framework supports the generation and publication of events. Explicit event publication enables a SAS program to generate an event of any kind and publish it explicitly.
First, you use the following CALL routines to define the event:
Once the event is defined, you can do the following:
  • Use the EVENT_PUBLISH CALL routine to generate an event that can be published by using HTTP, message queuing, or a publication channel. The event is generated by using an XML specification that contains the name of the event, a set of associated properties, and a message body. For detailed information, see the XML Specification for Generic Events and the examples of implicitly and explicitly generated events at the end of this chapter.
  • Use the EVENT_END CALL routine to free all resources that are associated with the event.
Note: The Publishing Framework does not currently support event retrieval.
To collect and process events that the Publishing Framework generates, you can develop customized programs by using the Event Broker service. The Event Broker is one of the Platform Services that is provided with SAS Integration Technologies.
The Publishing Framework also supports implicit event publication. This feature enables a channel's subscribers to be designated as event subscribers. The Publishing Framework then automatically notifies event subscribers whenever new information is published to the channel.