IBM Version 4 Universal Remote User Manual


 
Cᑍ Initialize the error code parameter. To signal exceptions to
Cᑍ this program by the API, you need to set the bytes provided
Cᑍ field of the error code to zero. Because this program has
Cᑍ exceptions sent back through the error code parameter, it sets
Cᑍ the bytes provided field to the number of bytes it gives the
Cᑍ API for the parameter.
C
C Z-ADD16 QUSBNB
C
Cᑍ Initialize QCAPCMD options control block for CL processing
C
C Z-ADD QCABCB
C MOVE '' QCABCC
C MOVE '' QCABCD
C MOVE '' QCABCF
C MOVE ᑍBLANKS QCABCG
C MOVE ᑍLOVAL QCABCH
C
Cᑍ Create library QUEUELIB
C
C MOVELCRTLIB CMDSTR
C Z-ADD2 LENSTR
C
C EXSR EXCCMD
C
Cᑍ Create a data queue called EXAMPLEQ in library QUEUELIB. The
Cᑍ queue will have a maximum entry length set at 1, and will be
Cᑍ FIFO (first-in first-out).
C
C MOVELCRTDQ CMDSTR
C Z-ADD42 LENSTR
C
C EXSR EXCCMD
C
Cᑍ Send information to the data queue.
C
C CALL 'QSNDDTAQ'
C PARM 'EXAMPLEQ'QUENAM 1
C PARM 'QUEUELIB'LIBNAM 1
C PARM 1 MSGSZ 5
C PARM 'EXAMPLE' MSG 1
C
Cᑍ Retrieve information from the data queue.
C
C CALL 'QRCVDTAQ'
C PARM 'EXAMPLEQ'QUENAM 1
C PARM 'QUEUELIB'LIBNAM 1
C PARM 1 MSGSZ 5
C PARM MSGBCK 1
C PARM  WAITTM 5
C
Cᑍ Display the returned message
C
C DSPLY MSGBCK
C
Cᑍ Delete the data queue
C
C MOVELDLTDQ CMDSTR
B-170 System API Programming V4R1