cwbDQ_SetAuthority

Purpose

Set the attribute for the authority that other users will have to the data queue.

Syntax

 
unsigned int CWB_ENTRY cwbDQ_SetAuthority(
                             cwbDQ_Attr          queueAttributes,
                             unsigned short      authority);

Parameters

cwbDQ_Attr queueAttributes - input
Handle of the data queue attributes returned by a previous call to cwbDQ_CreateAttr.
unsigned short authority - input
Authority that other users on the iSeries™ system have to access the data queue. Use one of the following defined types for authority:
  • CWBDQ_ALL
  • CWBDQ_EXCLUDE
  • CWBDQ_CHANGE
  • CWBDQ_USE
  • CWBDQ_LIBCRTAUT

Return Codes

The following list shows common return values.

CWB_OK
Successful completion.
CWBDQ_INVALID_ATTRIBUTE_HANDLE
Invalid attributes handle.
CWBDQ_INVALID_AUTHORITY
Invalid queue authority.

Usage

None