Net.Data supplies language environments that you use to access data sources and to execute application programs containing business logic. For example, the SQL language environment lets you pass SQL statements to a DB2 database, and the REXX language environment lets you invoke REXX programs. You can also use the SYSTEM language environment to execute a program or issue a command.
With Net.Data, you can add user-written language environments in a pluggable fashion. Each user-written language environment must support a standard set of interfaces that are defined by Net.Data and must be implemented as a service program. You must add an ENVIRONMENT statement to the Net.Data initialization file to associate a service program with the language environment written by you. Net.Data loads and executes a service program once, the first time it encounters a function call for a FUNCTION block that specifies the language environment name. Subsequent function calls for FUNCTION blocks that specify the same language environment name merely cause Net.Data to execute the loaded service program.
Figure 8 shows the relationship between the Web server, Net.Data, and the Net.Data language environments.
Figure 8. The Net.Data Language Environments
![]() |
For complete details on how to create a user-written language environment, see the Net.Data Language Environment Reference.
The following sections describes each of the language environments that are included with Net.Data, including how to configure and use the language environments.