DTW_STATIC

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





X


Purpose

Indicates that the entire macro is persistent.

Format

@DTW_STATIC(timeout)

@DTW_STATIC()

Parameters

Table 218. DTW_STATIC Parameters
Data Type Parameter Use Description
integer timeout IN A variable or literal string that specifies an amount of time, in seconds, that the process handling this transaction should wait for a response.

Return Codes

Table 219. DTW_STATIC 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.
1003 An incorrect number of parameters were passed on a function call.
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.
8202 Persistence could not be enabled.

Usage Notes

  1. DTW_STATIC should be the first statement in the macro. All variables defined in the macro after this function call will be persistent across multiple macro invocations unless specified otherwise and until DTW_TERMINATE() is called or the process is ended.
  2. A timeout value, in seconds, can be specified on the function call to indicate the amount of time the process Net.Data is running under waits for a response from the browser. If the timeout value expires, the process ends, and all changes to resources under commitment control since the last commitment boundary are rolled back.
  3. If a timeout value is specified on a subsequent @DTW_ACCEPT() call, Net.Data overrides this value with the value in the subsequent call. If a timeout value is not specified on this call or a subsequent @DTW_ACCEPT() call, the Web server default timeout value is used.

Examples

Example 1: A call to DTW_STATIC() specifying a timeout value of 60 seconds.

@DTW_STATIC("60")


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