5.16.5 RECEIVE

The RECEIVE command is used to receive a message.

To receive JMS message properties from the message, use the optional working list argument.

The first column receives the property type, the second column receives the property name and the third column receives the property value. The property type is always S (String) for user-defined properties and J for special JMS properties.

The message identifier (MessageID) is returned in the JSMMSG field.

Syntax:

Command

Keyword

Value

Developer notes

RECEIVE

ENCODING

 

Optional. See ENCODING.
Default is to auto-detect encoding.

WAITTIME

integer

Optional. Wait time in milliseconds.
Default is 0 forever.

SELECTOR

value

Optional. Message selector.

ARCHIVE

value

Optional. Archive file.

 

Example

RECEIVE #WRKLST(PRPTYP,PRPNME,PRPVAL)