Version 6.3.8 for OpenVMS
 —  Tools and Utilities  —

SYSEXT Utility - Natural Application Programming Interfaces

The utility SYSEXT is used to locate and test Natural Application Programming Interfaces (APIs) contained in the current system library SYSEXT.

A Natural API is a Natural subprogram (cataloged object) that is used for accessing and possibly modifying data or performing services that are specific to Natural, a subcomponent or a subproduct. The purpose of a Natural API is to retrieve or modify information or use services that are not accessible by Natural statements.

The SYSEXT Utility - Natural Application Programming Interfaces documentation covers the following topics:

Related Topics:


Basic Features of SYSEXT

For each Natural API, the utility SYSEXT provides a functional description, one example program and API-specific keywords.

The following diagram is an overview of the Natural objects and major features SYSEXT provides to test and implement an API:

graphics/sysext.png

Objects Provided for Natural APIs

The types of Natural object typically provided for each Natural API are listed in the following section. The section does not list additional objects that may be required for particular APIs.

All API-related objects are contained in the library SYSEXT on the system file FNAT.

In the following table, nnnn denotes the 4-digit number assigned to the API. All API objects that relate to one another have identical numbers.

Object Name Explanation
USRnnnnN The API subprogram (cataloged object) that performs the designated function.
USRnnnnP

An example program (source object) that can be used to test the effect of the API.

The example program invokes the corresponding subprogram USRnnnnN.

USRnnnnT

A text object that contains a description of the corresponding API. The description comprises purpose, function and calling conventions of the API and relevant keywords.

You can display a text object by using the line command D as described in Line Commands in Performing SYSEXT Utility Functions.

You can search for a text object by specifying a keyword as described in Keyword Search in Performing SYSEXT Utility Functions.

Top of page

Invoking and Terminating SYSEXT

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

Start of instruction set To invoke SYSEXT

Start of instruction set To terminate SYSEXT

Top of page

SYSEXT Utility Screen

The field and columns contained on the SYSEXT utility screen are explained in the following table:

Column Explanation
Cmd The input field for a line command to be executed on a text object or an example program: see Line Commands in Performing SYSEXT Utility Functions.
Source The name of the example program (source object USRnnnnP) that can be used to invoke the API.
Interface The name of the API subprogram USRnnnnN.
Comment A brief description of the purpose of the API.
Prod

The product code of Natural (NAT) or a Natural add-on product affected by the API.

For example: NAT = Natural, NDB = Natural for DB2, NVS = Natural for VSAM, PRD = Predict, RPC = Natural Remote Procedure Call.

Keyword The input field for a keyword relevant to an API: see Keyword Search in Performing SYSEXT Utility Functions.

Top of page

Performing SYSEXT Utility Functions

The SYSEXT utility functions can be used to perform operations on the text objects and example programs referenced in the API list on the SYSEXT utility screen. In addition, you can use the keyword search function to shorten the list of APIs or list all keywords available for the APIs.

The section below covers the following topics:

Line Commands

Line commands are used to perform object operations. You enter a line command in the Cmd column next to the API required. For a list of valid line commands, enter a question mark (?) in this column.

The following line commands are available on the SYSEXT utility screen:

Line Command Function
E Edit example program USRnnnnP.
L List example program USRnnnnP.
R Run example program USRnnnnP.
X Execute example program USRnnnnP.
D

List text object USRnnnnT for a description of the corresponding API.

The description comprises purpose, function and calling conventions of the API and keywords that are relevant to the API.

K List keywords relevant to the specified API.
. Terminate the SYSEXT utility.

Keyword Search

Keywords help you find the Natural APIs relevant to your current task. You can use the keyword search function to list APIs by keyword or list the keywords relevant to a specific API.

Start of instruction set To list APIs by keyword

Start of instruction set To list keywords relevant to a specific API

Top of page

Using a Natural API

If you want to use a Natural API contained in the SYSEXT system library, perform one of the following steps:

An API can only be used in the Natural version with which it is delivered. It cannot be executed in any other Natural version. Therefore, it is strongly recommended that APIs are stored only in the FNAT system file.

Top of page