IBM Support

IBM i Access for Windows Toolkit - Error handling

General Page

A listing of sample programs to help develop applications using the IBM i Access for Windows error handling APIs.


error handling,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 error handling APIs:


ActiveX automation objects

  • 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
  • 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 IBM i 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

  • coconsce.exe – Use of Communications System Object APIs in various connection scenarios.

    This sample demonstrates how an application might use the IBM i Access for Windows Communication APIs related to System Objects. In this example, these APIs are used to create system objects and to set their attributes according to the security and performance requirements of various scenarios. The system objects are then used to run remote commands (using the Remote Command APIs and Service APIs) and to validate user IDs and passwords, and the behavior and some elapsed times can be observed by the user.

  • logtrace.exe – Sample program showing usage of the IBM i Access for Windows service log and trace APIs.

    This module is used to demonstrate how an application might use the IBM i Access for Windows Serviceability APIs. In this example, these APIs are used to log a message to the history log, and log trace points to the detail trace file.

  • rcsamp1x.exe – Demonstrates the use of the Remote Program Call API.

    This sample demonstrates using the IBM i Access for Windows Remote Program Call APIs, National Language Support APIs, and the Service APIs to call an OS/400 API and return its output to the PC.

[{"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

Modified date:
03 May 2021

UID

isg3T1027194