Home | Previous Page | Next Page   MQ DataBlade Module > MQ DataBlade Functions > MQRead() > 3 3 3

Examples

3

Example 1: 3

3
begin;
3EXECUTE FUNCTION MQRead();
3commit;
3

Alternatively, the following syntax can be used: 3

3
insert into my_order_table VALUES(MQRead());

3This example reads the message at the head of the queue with the 3following parameters: 3

3 3

Example 2: 3

3
begin;
3EXECUTE FUNCTION MQRead('MYSERVICE');
3rollback;
3

Alternatively, the following syntax can be used: 3

3
insert into my_order_table VALUES(MQRead('MYSERVICE'));

3This example reads the message at the head of the queue with the 3following parameters: 3

3 3

Example 3: 3

3
begin;
3EXECUTE FUNCTION MQRead('MYSERVICE','MYPOLICY');
3commit;
3

Alternatively, the following syntax can be used: 3

3
insert into my_order_table VALUES(MQRead('MYSERVICE', 'MYPOLICY'));

3This example reads the message at the head of the queue with the 3following parameters: 3

3 3

Example 4: 3

3
begin;
3EXECUTE FUNCTION MQRead('MYSERVICE','MYPOLICY', 'TESTS');
3commit;
3

Alternatively, the following syntax can be used: 3

3
insert into my_order_table VALUES(MQRead('MYSERVICE', 'MYPOLICY', 'TESTS'));

3This example reads the message at the head of the queue with the 3following parameters: 3

3 Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]