Version 6.3.12 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 not accessible by Natural statements. Natural APIs refer to Natural, a subcomponent or a subproduct.

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

Related Topics:


Introduction to 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:

graphics/sysext_open_system.png

Objects Provided for Natural APIs

The types of Natural object typically provided for each Natural API are listed in the following section. Additional objects that might exist for a particular API are not covered.

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 to identify the API as well as the corresponding example program and text object.

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 system library SYSEXT, perform one of the following steps:

An API can only be used in the Natural version with which it is delivered. It is strongly recommended to store the APIs only in the FNAT system file. This will ensure that the right version is always executed.

Start of instruction setTo make use of an interface

  1. In the calling program, use the DEFINE DATA statement to specify the parameters listed in the text object USRnnnnT of that API. In the example program USRnnnnP, the parameters are defined within the DEFINE DATA LOCAL statement. Alternatively, you can specify the parameters outside the calling program in a separate LDA (Local Data Area) or PDA (Parameter Data Area), with a DEFINE DATA LOCAL USING statement referencing that data area.

  2. Enter the following statement:

    CALLNAT 'USRnnnnN' parameters

    For further information, see the CALLNAT statement in the Statements documentation.

Note:
Non-standard usage is always documented in the respective text object USRnnnnT.

Top of page