SAS 9.1.3 Integration Technologies » Developer's Guide


Publish Event Interface
CALL Routines
EVENT_BEGIN
EVENT_BODY
EVENT_PUBLISH
EVENT_END
XML Specification for Generic Events
XML Specification for SASPackage Events
Examples of Published Events
Publishing Framework

EVENT_BODY

Sets the body of the event message, which should be specified as a file that contains an XML document fragment.

Note: The EVENT_BODY CALL routine can be omitted if the event body is intended to be empty.

Syntax

CALL EVENT_BODY(eventId, filename, rc);

eventId
Numeric, output.
Identifies the event.

filename
Character, input.
Identifies the name of the file that contains the XML fragment that constitutes the event message. The filename parameter can be specified as either:
  • FILENAME: external_filename
  • FILEREF: sas_fileref

rc
Numeric, input.
Identifies the return code.

Examples

Example 1

The following is an example of an XML fragment that might be defined as the body. This XML fragment is located in the file that is specified by FILENAME or FILEREF in the CALL routine.

   <Company name='Alphalite Airways'>
      <Sales region='South'>
         <Projection>1000000</Projection>
         <Actual1000050</Actual>
      </Sales>        
      <Sales region='West'>
         <Projection>750000</Projection>
         <Actual>685000</Actual>
      </Sales>          
      <Sales region='North'>
         <Projection>500000</Projection>
         <Actual>600000</Actual>
      </Sales>             
      <Sales region='East'>
        <Projection>1000000</Projection>
        <Actual>950000</Actual>
      </Sales>
   </Company>

Example 2

The following example uses FILENAME to specify the name of the file that contains the body portion of the event.

   fname = "filename:c:\eventBody.xml";
   CALL EVENT_BODY(eventId, fname, rc);

See Also