You do not need the additional performance of MI instructions fo manipulating entries.

You need to create queues into a library that is not listed i QALWUSRDMN system value.

Data Queue—ILE C Example

The following program illustrates how to use APIs to create and manipula 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[1ð];

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

/\ Create library QUEUELIB.\/ /\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

A-16System API Programming V4R1

Page 272
Image 272
IBM Version 4 manual Data Queue-ILE C Example