IBM Support

IBM i Access for Windows Toolkit - Data queues

"A listing of sample programs to help develop applications using the IBM i Access for Windows data queue APIs.

data queues,windows toolkit,ibm i access for windows toolkit

The following sample programs are available to help develop applications using the IBM i Access for Windows data queue APIs:


ActiveX automation objects and controls

  • d_allobj.exe – Delphi 4 sample using the IBM i Access for Windows automation objects.

    This Delphi 4 sample uses the IBM i Access for Windows automation objects to perform the following:

    • Retrieve the list of IBM i systems which have previously been connected
    • Specify a new IBM i system to access
    • Retrieve information about an IBM i, such as the: IP address, host version and release levels, password expiration date, number of active connections, etc.
    • Call an IBM i Access for Windows API to retrieve a list of user libraries on the system
    • Call an IBM i API to retrieve a list of data queues in a library
    • Create and delete libraries
    • Create and delete data queues
    • Query the attributes of data queues
    • Send and receive data using data queues
    • Convert strings and numeric data between host and PC formats
    • Retrieve information about the IBM i Access for Windows code installed on the PC
  • dqrmtcm2.exe – Sample using ActiveX controls and automation objects for data queues and remote command.

    This Visual Basic sample uses the IBM i Access for Windows ActiveX custom controls and automation objects to retrieve a list of IBM i systems (which have been previously connected), create and delete libraries, create and delete data queues, and send and receive data using data queues.

  • vballobj.exe – Visual Basic sample using the IBM i Access for Windows automation objects.

    This Visual Basic sample uses the IBM i Access for Windows automation objects to perform the following:

    • Retrieve the list of System is which have previously been connected
    • Specify a new System i to access
    • Retrieve information about an System i, such as the: IP address, host version and release levels, password expiration date, number of active connections, etc.
    • Call an System i API to retrieve a list of user libraries on the system
    • Call an System i API to retrieve a list of data queues in a library
    • Create and delete libraries
    • Create and delete data queues
    • Query the attributes of data queues
    • Send and receive data using data queues
    • Convert strings and numeric data between host and PC formats
    • Retrieve information about the IBM i Access for Windows code installed on the PC
  • vbsallob.exe – Visual Basic Script sample using the iSeries Access for Windows automation objects.

    This Visual Basic Script sample uses the IBM i Access for Windows automation objects to perform the following:

    • Retrieve the list of IBM i systems which have previously been connected
    • Specify a new IBM i to access
    • Retrieve information about an IBM i, such as the: IP address, host version and release levels, password expiration date, number of active connections, etc.
    • Call an IBM i API to retrieve a list of user libraries on the server
    • Call an IBM i API to retrieve a list of data queues in a library
    • Create and delete libraries
    • Create and delete data queues
    • Query the attributes of data queues
    • Send and receive data using data queues
    • Convert strings and numeric data between host and PC formats
    • Retrieve information about the IBM i Access for Windows code installed on the PC

    This sample requires the file cwbxvbs.inc which is installed in the Include directory as part of the IBM i Access for Windows Toolkit. This file must be in the same directory as the files from this sample.

    Note: If you get the following error while running this script:
    "ActiveX component can't create object: 'createobject'"
    please see Microsoft Knowledge Base article Q195826.


C/C++ APIs

  • dqsamp.exe – Data queue sample written in Visual C++ 4.2 using MFC and the Data Queue APIs.

    This sample uses the IBM i Access for Windows Data Queue APIs to do simple client/system transaction processing and keyed storage. The interface uses the Microsoft Foundation Classes (MFC) for displaying graphical dialogs, storage objects, and for Windows message processing. The code that does the actual data queue operations consists of a set of classes which call the Data Queue APIs.

    Two separate types of data queues are used in the sample. A First-In First-Out (FIFO) queue for transaction messages and a keyed queue for item storage. These queues may reside on different systems.

[{"Product":{"code":"HW1A1","label":"IBM Power Systems"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"--","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

More support for:
IBM Power Systems

Software version:
Version Independent

Operating system(s):
IBM i

Document number:
664373

Modified date:
03 May 2021

UID

isg3T1027190

Manage My Notification Subscriptions