|
Publishing Framework
EVENT_BODYSets 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. SyntaxCALL EVENT_BODY(eventId, filename, rc);
ExamplesExample 1The 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 2The 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 |