An ENVIRONMENT statement has the following format:
ENVIRONMENT(type) library-name ([usage parameter, ...)
Each ENVIRONMENT statement must be on a single line.
The following are the parameters you must specify for each language environment:
The name that associates this language environment with a FUNCTION block definition in a Net.Data macro. You must also specify the language environment type on a FUNCTION block definition to tell Net.Data which language environment processes the function call. The name cannot begin with the prefix DTW_. This prefix is reserved for language environments shipped with Net.Data. See the "Function Block" section in Net.Data Reference for more information about the FUNCTION block.
The name of the object containing the language environment interfaces that are called by Net.Data. In Windows NT and OS/2, the DLL name is specified without the .dll extension. In AIX, the name of the shared object is specified with the .o extension, and in OS/400, the service program name is specified with the .SRVPGM extension. OS/390 has no extensions for DLL files. Look at the initialization file shipped with Net.Data for your operating system to see how to specify this name. Consider using a fully qualified path name to make sure Net.Data finds the DLL or shared library.
The list of parameters that are passed to the language environment on each function call, in addition to those parameters specified in the FUNCTION block definition. They are passed in the parm_data_array field of the dtw_lei structure following the parameters specified in the FUNCTION block definition. You must define these parameters as variables in your Net.Data macro before the function call is made. If a function modifies the value of these parameters, the parameters retain the modified value once the function finishes processing.