IBM Books

Administration and Programming Guide for OS/400

Creating an Initialization File

Creating an initialization file is optional when using Net.Data for OS/400. You should create an initialization file if:

To create an initialization file:

  1. In the library where the DB2WWW program object resides, use the Create Source Physical File (CRTSRCPF) command to create the initialization file.

    File name:
    INI

    Member name:
    DB2WWW

    It is recommended that you create the initialization file with a record length of 240 because the text of configuration statements must all be on one line.

  2. Use the Source Entry Utility (SEU) or a workstation editor to add configuration statements to the file as demonstrated in the sample macro and in the following sections.

If you create an initialization file and then update it, you do not need to end or restart the Web server in order for the changes to take effect. Net.Data reads the initialization file once, during the initial invocation by an HTTP server job. The configuration data is saved so that on subsequent Net.Data invocations, Net.Data does not have to read the initialization file. However, if a change is made to the initialization file, Net.Data detects the change to the initialization file and reads the initialization file again.

Authorization Tip: Ensure that the user IDs under which Net.Data executes have the appropriate access rights to this file. See Granting Access Rights to Objects Accessed by Net.Data for more information.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]