DTWF_CLOSE

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

Purpose

Closes a file opened by DTWF_OPEN.

Format

@DTWF_CLOSE(filename, retry)

@DTWF_CLOSE(filename)

Parameters

Table 170. 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 171. 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 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.
2002 A flat file interface built-in function could not close the specified file because it was not opened by this macro invocation.
2004 A flat file interface built-in function was attempting to find a file, but encountered a path in the FFI_PATH configuration file variable that was longer than the maximum supported number of bytes, which is 4095.

Examples

Example 1:

@DTWF_CLOSE(myFile, "5")


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