MQ_GET

The MQ_GET BIF gets a message from the queue and passes it to the loaded service.

Arguments

No

Type

Required
Optional

Description

Min
Length

Max
Length

Min
Decimal

Max
Decimal

1

A

Required

Connection Handle.

4

4

 

 

2

A

Required

Queue Handle.

4

4

 

 

3

P

Required

Wait Time (milliseconds)
Use -1 for forever.

9

9

0

0

4

P

Required

Initial Message Length
Default is 20000 bytes.
This is a helper size, if the size is too small the internal storage is reallocated to the size of the message and another get operation is performed.

9

9

0

0

5

A

Required

Message Id
Use *BLANK for any message.

24

24

 

 

6

A

Required

Correlation Id
User *BLANK for any message.

24

24

 

 

7

A

Optional

SyncPoint
Y or N
Default is N.

1

1

 

 

 

Return Values

No

Type

Required
Optional

Description

Min
Length

Max
Length

Min
Decimal

Max
Decimal

1

A

Required

Status.

20

20

 

 

2

A

Required

Message.

1

256

 

 

3

P

Required

Message Type.
1 - Request
2 - Reply
4 - Report
8 - Datagram
65536-999999999 - User defined.

9

9

0

0

4

A

Required

Message Format.

8

8

 

 

5

A

Required

Message Id.

24

24

 

 

6

A

Required

Correlation Id.

24

24

 

 

7

A

Required

Remote Queue Manager.

48

48

 

 

8

A

Required

Remote Queue.

48

48

 

 

9

A

Required

User.

12

12

 

 

10

A

Required

Application Id.

32

32