RPC Broker 1.1 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$BROKER^XWBLIB: Test for Broker Context

Reference Type: Supported, Category: RPC Broker, ICR#: 2198

Description

Use the $$BROKER^XWBLIB extrinsic function in the M code called by an RPC to determine if the current process is being executed by the RPC Broker.

Format

  $$BROKER^XWBLIB

Input Parameters

none.

 

Output

return value:

Returns:

  • 1—If the current process is being executed by the Broker.

  • 0—If the current process is not being executed by the Broker.

 

Example

I $$BROKER^XWBLIB D .; broker-specific code