IBM Books

Reference

DTWF_CLOSE


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

X X X
X X

Purpose

Closes a file opened by DTWF_OPEN.

Format

@DTWF_CLOSE(filename, retry)

@DTWF_CLOSE(filename)

Parameters

Table 168. DTWF_CLOSE Parameters

Data Type Parameter Use Description
string filename INOUT The name of the file to close. On successful completion of the call, this parameter returns the fully qualified file name.
integer retry IN The number of times to retry if the file cannot be closed immediately. The default is not to retry.

Return Codes

Table 169. DTWF_CLOSE 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.
2002 A flat file interface built-in function could not close the specified file because it was not opened by this macro invocation.

Examples

Example 1:

@DTWF_CLOSE(myFile, "5")


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