IBM Books

Reference

DTWR_OPENREG


AIX HP-UX Linux OS/2 OS/390 OS/400 SCO SUN Win NT





X


Purpose

Opens a Web registry.

Format

@DTWR_OPENREG(registry, commit)

@DTWR_OPENREG(registry)

Parameters

Table 202. DTWR_OPENREG Parameters

Data Type Parameter Use Description
string registry IN The name of the registry to open.
string commit IN A single symbol or literal string specifying whether the registry is opened under commitment control or not. The possible values are:

Y
Open the registry under commitment control.

N
Do not open the registry under commitment control.
The default is N

Return Codes

Table 203. DTWR_OPENREG Return Codes

Return Code Explanation
-1001 The server could not process a Net.Data request to allocate memory.
1001 An input parameter contained a NULL value.
1002 An input parameter contained a string value which consisted of the null-terminating character.
1003 The number of parameters passed on a function call either exceeded the maximum number allowed, or was less than the minimum number required by the function.
1005 A parameter passed on a function call, required to be a string variable, was of a different variable type.
1007 A parameter contains a value which is not valid.
3005 A Web registry built-in function could not use the specified registry because it cannot be found.
3007 A Web registry built-in function could not complete the specified operation because the requestor does not have the proper authority to the specified registry.

Examples

Example 1: Open the registry under commitment control

@DTWR_OPENREG("/qsys.lib/mylib.lib/myreg.file", "Y")
 


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