You do not need the additional performance of MI instructions for directly
manipulating entries.
You need to create queues into a library that is not listed in the
QALWUSRDMN system value.
Data Queue—ILE C Example
The following program illustrates how to use APIs to create and manipulate a data
queue.
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/
/\ \/
/\Program Name: DQUEUEX \/
/\ \/
/\Program Language: ILE C \/
/\ \/
/\Description: This program illustrates how to use APIs to create \/
/\ and manipulate a data queue. \/
/\ \/
/\ \/
/\Header Files Included: <stdio.h> \/
/\ <string.h> \/
/\ <stdlib.h> \/
/\ <decimal.h> \/
/\ <qrcvdtaq.h> \/
/\ <qsnddtaq.h> \/
/\ \/
/\APIs Used: QSNDDTAQ - Send data queue \/
/\ QRCVDTAQ - Receive data queue \/
/\ \/
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/
/\ Includes \/
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <decimal.h>
#include <qsnddtaq.h> /\ from QSYSINC/h \/
#include <qrcvdtaq.h> /\ from QSYSINC/h \/
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/
/\ \/
/\ Main \/
/\ \/
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/
void main()
{
decimal(5,ð) DataLength = 1ð.ðd,
WaitTime = ð.ðd;
char QueueData[];
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/
/\ Create library QUEUELIB. \/
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/
A-16 System API Programming V4R1