Previous Topic: EVENTSNext Topic: GLOBVAL


FUNCTION

This parameter identifies functions that are not included in the CA‑GSS load module.

Syntax

FUNCTION name module [seconds] {SYNC|ASYNC|TEST}

Parameters

name

1- to 8-character function name. This name should not duplicate the name of any CA-provided functions.

module

Name of the load module to process the function call.

seconds

Maximum time, in seconds, that a single function call can consume. This parameter has effect only when the function is executed as a subtask (ASYNC or TEST).

SYNC

Indicates that function processing contains no implied or explicit WAITs (no I/O). The load module must be re-entrant and must not exit without restoring the original environment (release storage, and so on).

ASYNC

Indicates that function processing should be performed under a true subtask. I/O and WAITs are permissible.

TEST

Same as ASYNC, except that the subtask is detached at the conclusion of the IMOD task responsible for creating it. This ensures that a fresh copy of the non-re-entrant load module is fetched for each new IMOD task that calls the function call.