Version 6.3.13 for Windows
 —  Tools and Utilities  —

SYSAPI Utility - APIs of Natural Add-On Products

The utility SYSAPI is used to locate and test Application Programming Interfaces (APIs) provided by Natural add-on products such as Entire Output Management. This can be done either in a local Windows environment or in a remote environment located on a Windows, a UNIX, an OpenVMS or a mainframe platform.

The API of a Natural add-on product is a Natural subprogram (cataloged object) that is used for accessing and possibly modifying data or performing services that are specific to an add-on product or a subcomponent.

The API of a Natural add-on product is supplied in the Natural library and/or system file provided for objects that are specific to a particular Natural add-on product. For instructions on using the API of a Natural add-on product, refer to the documentation of the respective add-on product.

For each API of a Natural add-on product, the utility SYSAPI provides a functional description, one example program and API-specific keywords.

The SYSAPI Utility - APIs of Natural Add-On Products documentation covers the following topics:

Related Topics:


Prerequisites

Top of page

Invoking and Terminating SYSAPI

This section provides instructions for invoking and terminating the SYSAPI utility.

Start of instruction set To invoke SYSAPI

Start of instruction set To restart SYSAPI

Start of instruction set To terminate SYSAPI

Top of page

SYSAPI Tree View Items

This section describes the structure of the tree in the SYSAPI utility window and the nodes and items contained in the tree view.

Starting with the SYSAPI - APIs of Natural Add-on Products root node at the top tree level you can expand the following node hierarchy:

Natural Add-On Product Node

Each Natural add-on product installed at your site has its own node, which contains one or more subordinate API group nodes.

API Group Node

Each API group node represents a particular API feature provided for the Natural add-on product of the parent node. An API group node contains all API nodes that relate to the particular feature.

API Node

An API node name consists of the name of the API subprogram and a brief description of its functional purpose. API nodes are sorted by API names.

An API node contains the following API-specific items:

Item Explanation
Keywords All keywords relevant to the API. See also the functions Select Keyword and List All Keywords.
Description A text object or program that contains a description of the API. The description comprises purpose, function and calling conventions of the API and keywords relevant to the API.
Example Program An example program or subprogram of how to invoke the API.

Top of page

Performing SYSAPI Utility Functions

The SYSAPI utility can be used to perform operations on API-specific text objects (descriptions) and example programs or functions on API groups such as finding APIs relevant to a current task by specifying keywords.

Object operations include functions such as List, Open and Execute, which correspond to the standard functions available when maintaining or executing a Natural object of the type text or program. These functions can be performed by using the context menu associated with each object. For details of these functions, refer to the relevant sections in the Using Natural Studio documentation.

The section below describes the functions that can be performed on an API group:

Select Keyword

This function is used to list all API nodes of a selected API group to which a specified keyword applies.

Start of instruction set To list APIs by keyword

  1. Select the API group node of a Natural add-on product, open the context menu and choose Select Keyword or press SHIFT+K.

    The Select Keyword window appears.

  2. From the drop-down list box, select a keyword as shown in the example of a Select Keyword window in the SYSEXT utility documentation.

  3. Choose the OK button.

    The keyword is indicated in the node name of the selected API group.

  4. Expand the API group node.

    A list of all API nodes to which the specified keyword applies appears for the selected API group. The window looks similar to the corresponding window of the SYSEXT utility (see the example in the SYSEXT utility documentation).

  5. If required, to return to the complete list of all API nodes available in the API group node (default setting), in the Select Keyword window, select the asterisk (*).

List All Keywords

This function is used to list all keywords available for a selected API group.

Start of instruction set To list all keywords of an API group

  1. Select an API group node, open the context menu and choose List All Keywords or press SHIFT+A.

    The All Keywords window appears where the root node indicates the name of the Natural add-on product and the name of the selected API group.

    The window looks similar to the All Keywords window of the SYSEXT utility (see the example in the SYSEXT utility documentation).

  2. Expand the root node.

    A list of all keywords available for the selected API group appears. You can expand the keyword nodes and display all API nodes to which the keyword applies.

Refresh

This function updates the current SYSAPI environment settings. This can be required, for example, when you change the language code (system variable *LANGUAGE) to adapt API descriptions and keywords to another language if the Natural add-product supports different languages for its API descriptions and keywords.

Start of instruction set To refresh SYSAPI environment settings

  1. Select the root node SYSAPI - APIs of Natural Add-on Products, open the context menu and choose Refresh or press SHIFT+R.

    A Refresh window appears.

  2. Choose the OK button to confirm the refresh or choose Cancel to abort the operation.

Top of page