Previous Topic Next topic Print topic


FETCH Statement

Purpose

Dynamically loads an external procedure into main storage.

Syntax

FETCH entry-constant [SET(ptr-ref)][TITLE (char-expr)]

Parameters

entry-constant
The name by which the loaded procedure is known to the operating system. It is the same as the one used in the corresponding CALL statement, or CALL option of an INITIAL attribute, or function reference.
ptr-ref
A pointer reference that is set to the address of the entry point of the module that is loaded.
char-expr
Any character expression.

Description

The FETCH statement is used to dynamically load modules into main storage. It must specify an entry constant, which is the name by which the fetched procedure is known to the operating system. When this name is referenced in a FETCH statement, the procedure can also be loaded into main storage when a CALL statement, or a CALL option of an INITIAL attribute, or a function reference is executed.

Restrictions

See Restrictions under Dynamic Fetching and Releasing of External Procedures.

Previous Topic Next topic Print topic