z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


msgget

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-msgget--key--+-----------------------+----------------------><
                '-flag--+-------------+-'   
                        '-permissions-'     

Function

msgget locates or creates a message queue.

Parameters

key
The message queue key. key must be 4 bytes.
flag
The type of connection to the message queue. It can be 0 to get the existing queue, or it can be a sum of any of the following:
1
ipc_create. This is the default.
2
ipc_excl
4
ipc_rcvtypepid
8
ipc_sndtypepid
permissions
The permission settings in octal. The default is 600.

Example

'msgget WJSQ' 
qid=retval

Usage notes

Upon return, RETVAL contains -1 if the service fails. Otherwise, the queue ID is returned.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014