Before using Net.Data, you must copy the Net.Data program object to the CGI-BIN library and provide access rights to the object.
To copy the Net.Data program object:
OS/400 V4R3 users: Use the program object in library QHTTPSVR; the program object in the QTCP library routes Net.Data requests to the QHTTPSVR library.
By default, the DB2WWW program object authority for *PUBLIC users is set to *EXCLUDE. To provide access to the program object, change the program object's authority for *PUBLIC users to *USE, or specifically give the user profile access to the DB2WWW program object.
You can copy the Net.Data program object to multiple libraries for different applications. This allows you to have more than one version of the Net.Data initialization file or multiple protection schemes. See Customizing the Net.Data Initialization File for more information about the Net.Data initialization file; see Using Authentication for information on authentication.
To copy the Net.Data program object to multiple libraries:
In effect, the CL program you created becomes the Net.Data program object. If you do not associate the program object with a CL program, and copy the Net.Data program object DB2WWW to the different libraries, you get a -901 SQL code when using the SQL language environment.
In the following sections, the CL program you created should be treated as the Net.Data program object, if you chose to create the CL program to call Net.Data.