DYNAMIC_FUNCTION_CALLS

This variable allows you to specify a list of functions or function name prefixes that the runtime treats as dynamic functions and therefore searches first, before searching the disk for COBOL programs. This speeds the resolution of calls to functions in the current process or in a shared library.

The runtime checks call names for matches in the list specified in the variable. If a match is found, the runtime attempts to call the routine directly in the current process and in each of the loaded shared libraries. If these attempts fail, the runtime attempts to load a COBOL program with the specified name.

Set DYNAMIC_FUNCTION_CALLS to a space- or comma-delimited list of names of frequently called functions that are linked into the current process or in one of the loaded shared libraries.

The asterisk "*" character can be appended to the end of a name as a wild card. In this case, the characters before the asterisk are treated as a prefix and match any call name that begins with that prefix. A value of asterisk ("*") alone matches all function names. Use this to cause the runtime to treat all names as dynamic functions first before searching the disk or memory for a COBOL program with a matching name.

The value of DYNAMIC_FUNCTION_CALLS is case insensitive. The default value is empty.

DYNAMIC_FUNCTION_CALLS can be set in the environment, configuration file, or programmatically with the SET verb. Set it to spaces to clear the list.

When DYNAMIC_FUNCTION_CALLS is set in the configuration file, there is no limit on the number of function names or overall size of the value of the configuration variable. To specify a configuration file value on multiple lines, you must prepend each line after the first with "-". For example:

DYNAMIC_FUNCTION_CALLS =
-                       func1,
-                       func2,
-                       func3

The line continuation processing removes all leading and trailing spaces so in this case you must separate the values with a comma (that is, append a comma to each line).

Note: This variable cannot be read with the ACCEPT FROM ENVIRONMENT statement.