IBM Books

Net.Data Administration and Programming Guide for OS/400


Customizing the Net.Data Initialization File

The information contained in the initialization file is specified using three types of configuration statements, described in the following sections:

See Creating an Initialization File to learn how to create an initialization file.

The sample initialization file shown in Figure 2 contains examples of these statements.

Figure 2. The Net.Data initialization file





1  DTWR_CLOSE_REGISTRIES YES
 
2  MACRO_PATH    /WWW/MACRO;/QSYS.LIB/WWW.LIB/MACRO.FILE
3  INCLUDE_PATH  /WWW/MACRO;/QSYS.LIB/WWW.LIB/MACRO.FILE
4  EXEC_PATH     /QSYS.LIB;/QSYS.LIB/WWW.LIB
 
5  ENVIRONMENT(DTW_REXX) /QSYS.LIB//QTCP.LIB/QTMHREXX.SRVPGM ( )
6  ENVIRONMENT(DTW_SQL)  /QSYS.LIB/QTCP.LIB/QTMHSQL.SRVPGM 
     (IN DATABASE, LOGIN, PASSWORD, TRANSACTION_SCOPE, SHOWSQL, 
     DB_CASE, RPT_MAX_ROWS, START_ROW_NUM,
     DTW_SET_TOTAL_ROWS, OUT DTWTABLE, SQL_CODE,
     TOTAL_ROWS)
7  ENVIRONMENT(DTW_SYSTEM) /QSYS.LIB/QTCP.LIB/QTMHSYS.SRVPGM  ( )



  • Line 1 sets the values of the configuration variables

  • Lines 2- 4 define paths to the files that Net.Data needs to access

  • Lines 5 - 7 define the environment statements that are available.


The text of each individual configuration statement must all be on one line. (An ENVIRONMENT statement is shown on several lines for readability.) The ENVIRONMENT statements are not needed if you do not plan to call any language environments in your Net.Data macros. Nor do you have to specify any of the path configuration statements if you fully qualify all references to files within the macro file.

The following sections describe how to create the initialization file and customize the configuration statements in the INI file.


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