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.

Apply Data Queue Journal Entry PDF Print E-mail

Apply Data Queue Journal Entry (APYDTAQXCL)

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

The Apply Data Queue Journal Entry (APYDTAQXCL) command applies a data queue journal entry to a data queue.

This function is also available with command APYDTAQE 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 *ADD authority to the data queue.
  • The data queue must be a local data queue.
Top

Parameters

KeywordDescriptionChoicesNotes
DTAQ Data queue Qualified object name Optional, Positional 1
Qualifier 1: Data queue Name
Qualifier 2: Library Name, *LIBL, *CURLIB
DTA Data Character value Optional, Positional 2
DTALEN Data length Decimal number Optional
Top

Data queue (DTAQ)

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

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

Data (DTA)

Specifies the CL variable containing the journal entry associated with a data queue entry.

This is a required parameter.

character-value
Specify the CL variable containing the journal entry.
Top

Data length (DTALEN)

Specifies the length of the journal entry identified by the DTA parameter. The length value must be obtained from the journal entry. The length could be longer than the maximum entry length of the data queue.

This is a required parameter.

decimal-number
Specify the length of the DTA parameter.
Top

Examples for APYDTAQXCL

Example 1: Simple Command Example

 

ApyDtaQXCL  DtaQ(MyLib/MyQueue) Dta(&JEntry) DtaLen(&Size)

 

This command applies the journal entry found in CL variable &JEntry, with a size of &Size, to the data queue MyQueue in library MyLib. The &Size parameter value is determined by the journal entry. The &Size value is not determined by the maximum length defined for entries on data queue MyQueue in library MyLib.

Top

Error messages for APYDTAQXCL

*ESCAPE Messages

XCL501D
DTALEN(&1) is greater than defined length of DTA parameter.
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