Release the NEW Power of CL

Release the NEW Power of CL

Name:

Email:

Programming Services

Do you need a program written?

Bruce Vining Services can provide highly experienced IBM i developers to supplement your staff with short term contracts. We don't do general ledger but if you are looking for custom solutions involving system functions such as database, communications, security, encryption, print, and work management you will find your answers at Bruce Vining Services.

Retrieve Data Queue Info PDF Print E-mail

Retrieve Data Queue Info (RTVDTAQXCL)

Where allowed to run:
  • Batch program (*BPGM)
  • Interactive program (*IPGM)
Threadsafe: Yes
Parameters
Examples
Error messages

The Retrieve Data Queue Info (RTVDTAQXCL) command retrieves information about a data queue. The information retrieved includes creation attributes as well as current status information.

This function is also available with command RTVDTAQINF in library VC2XCL. Any use of this alternative command name should be library qualified in case the i operating system were to use this command name in a future release.

Restrictions:

  • You must have *EXECUTE authority to the library where the data queue is located.
  • You must have *OBJOPR and *READ authority to the data queue.
Top

Parameters

KeywordDescriptionChoicesNotes
DTAQ Data queue Qualified object name Required, Positional 1
Qualifier 1: Data queue Name
Qualifier 2: Library Name, *LIBL, *CURLIB
NBRENT Number of entries (INT 4) Integer Optional
MAXLEN Max length of entry (5 0) Decimal number Optional
MAXKEYLEN Max length of key (3 0) Decimal number Optional
SNDRID Sender ID (LGL) Logical value Optional
NBRINTENT Nbr initial entries (INT 4) Integer Optional
NBRENTALC Nbr entries allocated(INT 4) Integer Optional
AUTORCL Auto reclaim (LGL) Logical value Optional
FORCE Force to aux storage (LGL) Logical value Optional
TYPE Type (10) Character value Optional
SEQ Sequence (INT 4) Integer Optional
LIB Library (10) Character value Optional
DEVD Device description (10) Character value Optional
MODE Mode (8) Character value Optional
RMTLOCNAME Remote location name (8) Character value Optional
LCLLOCNAME Local location name (8) Character value Optional
RMTNETID Remote network ID (8) Character value Optional
RMTDTAQNAM Remote data queue name (10) Character value Optional
RMTDTAQLIB Remote data queue lib (10) Character value Optional
RDBNAME Database name (18) Character value Optional
TEXT Text 'description' Character value Optional
Top

Data queue (DTAQ)

Specifies the qualified name of the data queue to be accessed.

This is a required parameter.

Qualifier 1: Data queue

*LIBL
The library list for the job is used.
*CURLIB
The current library for the job is used. If no current library entry exists in the library list, QGPL is used.
name
Specify the name of the library.
Top

Number of entries (INT 4) (NBRENT)

Specifies the CL variable to return the number of current entries is use on the data queue.

The returned value will be 0 for data queues of TYPE(*DDM).

integer
Specify the name of a CL variable defined as TYPE(*INT) LEN(4).
Top

Max length of entry (5 0) (MAXLEN)

Specifies the CL variable to return the maximum length of an entry for the data queue.

The returned value will be 0 for data queues of TYPE(*DDM).

decimal-number
Specify the name of a CL variable defined as TYPE(*DEC) LEN(5 0).
Top

Max length of key (3 0) (MAXKEYLEN)

Specifies the CL variable to return the maximum key length of an entry for the data queue.

The returned value will be 0 for data queues of TYPE(*DDM) or for non-keyed data queues.

decimal-number
Specify the name of a CL variable defined as TYPE(*DEC) LEN(3 0).
Top

Sender ID (LGL) (SNDRID)

Specifies the CL variable to return whether or not sender ID information is available for a data queue entry. If the CL variable is returned with a true value ('1') sender information is available. Otherwise sender information is not available.

The returned value will be 0 for data queues of TYPE(*DDM).

logical-value
Specify the name of a CL variable defined as TYPE(*LGL).
Top

Nbr initial entries (INT 4) (NBRINTENT)

Specifies the CL variable to return the number of initial entries when the data queue was created or when storage is reclaimed for the data queue.

The returned value will be 0 for data queues of TYPE(*DDM).

integer
Specify the name of a CL variable defined as TYPE(*INT) LEN(4).
Top

Nbr entries allocated(INT 4) (NBRENTALC)

Specifies the CL variable to return the number of currently allocated entries for the data queue.

The returned value will be 0 for data queues of TYPE(*DDM).

integer
Specify the name of a CL variable defined as TYPE(*INT) LEN(4).
Top

Auto reclaim (LGL) (AUTORCL)

Specifies the CL variable to return whether or not storage is automatically reclaimed when no entries are currently on the data queue.

The returned value will be 0 for data queues of TYPE(*DDM).

logical-value
Specify the name of a CL variable defined as TYPE(*LGL).
Top

Force to aux storage (LGL) (FORCE)

Specifies the CL variable to return whether or not entries are forced to auxiliary storage as entries are sent or received.

The returned value will be 0 for data queues of TYPE(*DDM).

logical-value
Specify the name of a CL variable defined as TYPE(*LGL).
Top

Type (10) (TYPE)

Specifies the CL variable to return the type of the data queue. A value of *STD is returned for standard data queues. A value of *DDM is returned for distributed data management (DDM) data queues.

character-value
Specify the name of a CL variable defined as TYPE(*CHAR) LEN(10).
Top

Sequence (INT 4) (SEQ)

Specifies the CL variable to return the sequence in which messages can be received or removed from the data queue. A value of 1 is returned for FIFO data queues, 2 for LIFO data queues, and 3 for keyed data queues.

The returned value will be 0 for data queues of TYPE(*DDM).

integer
Specify the name of a CL variable defined as TYPE(*INT) LEN(4).
Top

XCL0F0C (LIB)

Specifies the CL variable to return the name of the library where the data queue is located. If *LIBL or *CURLIB is specified for the library name, this parameter is the actual name of the library.

character-value
Specify the name of a CL variable defined as TYPE(*CHAR) LEN(10).
Top

Device description (10) (DEVD)

Specifies the CL variable to return the name of the device description associated with a DDM data queue. The special value *LOC can be returned.

The returned value will be blank for RDB type DDM data queues and local data queues.

character-value
Specify the name of a CL variable defined as TYPE(*CHAR) LEN(10).
Top

Mode (8) (MODE)

Specifies the CL variable to return the name of the mode associated with a DDM data queue. The special value *NETATR can be returned.

The returned value will be blank for RDB type DDM data queues and local data queues.

character-value
Specify the name of a CL variable defined as TYPE(*CHAR) LEN(8).
Top

Remote location name (8) (RMTLOCNAME)

Specifies the CL variable to return the name of the remote location associated with a DDM data queue. The special value *RDB can be returned.

The returned value will be blank for local data queues.

character-value
Specify the name of a CL variable defined as TYPE(*CHAR) LEN(10).
Top

Local location name (8) (LCLLOCNAME)

Specifies the CL variable to return the name of the local location associated with a DDM data queue. The special values *LOC and *NETATR can be returned.

The returned value will be blank for RDB type DDM data queues and local data queues.

character-value
Specify the name of a CL variable defined as TYPE(*CHAR) LEN(10).
Top

Remote network ID (8) (RMTNETID)

Specifies the CL variable to return the name of the remote network ID associated with a DDM data queue. The special values *LOC, *NETATR, and *NONE can be returned.

The returned value will be blank for RDB type DDM data queues and local data queues.

character-value
Specify the name of a CL variable defined as TYPE(*CHAR) LEN(8).
Top

Remote data queue name (10) (RMTDTAQNAM)

Specifies the CL variable to return the name of the remote data queue associated with a DDM data queue.

The returned value will be blank for local data queues.

character-value
Specify the name of a CL variable defined as TYPE(*CHAR) LEN(10).
Top

Remote data queue lib (10) (RMTDTAQLIB)

Specifies the CL variable to return the name of the remote data queue library associated with a DDM data queue. The special values *LIBL and *CURLIB can be returned.

The returned value will be blank for local data queues.

character-value
Specify the name of a CL variable defined as TYPE(*CHAR) LEN(10).
Top

Database name (18) (RDBNAME)

Specifies the CL variable to return the name of the relational database associated with a DDM data queue.

The returned value will be blank for non-RDB type DDM data queues and local data queues.

character-value
Specify the name of a CL variable defined as TYPE(*CHAR) LEN(18).
Top

Text 'description' (TEXT)

Specifies the CL variable to return the text description associated with a data queue.

character-value
Specify the name of a CL variable defined as TYPE(*CHAR) LEN(50).
Top

Examples for RTVDTAQXCL

Example 1: Simple Command Example

 

Dcl        Var(&NbrEnt) Type(*Int)
RtvDtaQXCL DtaQ(QTEMP/TEST) NbrEnt(&NbrEnt)

 

This command retrieves the current number of entries on the data queue TEST in library QTEMP.

Top

Error messages for RTVDTAQXCL

*ESCAPE Messages

XCL9002
Function did not complete. See previously listed messages related to possible user errors.
XCL9003
Function did not complete. See previously listed messages for possible cause.
XCL9004
Function did not complete. See previously listed messages for possible cause.
XCL9005
Function did not complete. Contact your service provider.
Top
 
Joomla 1.5 Templates by Joomlashack