CLSDDREC: Closing All Files Opened by the PUTDDREC Function

How to:

The CLSDDREC function closes all files opened by the PUTDDREC function. If PUTDDREC is called in a Dialogue Manager -SET command, the files opened by PUTDDREC are not closed automatically until the end of a request or connection. In this case, you can close the files and free the memory used to store information about open file by calling the CLSDDREC function. For information about PUTDDREC, see PUTDDREC: Writing a Character String as a Record in a Sequential File.


Top of page

x
Syntax: How to Close All Files Opened by the PUTDDREC Function
CLSDDREC(output)

where:

output

Integer

Is the return code, which can be one of the following values:

0 - Files are closed.
1 - Error while closing the files.



Example: Closing Files Opened by the PUTDDREC Function

This example closes files opened by the PUTDDREC function:

CLSDDREC('I1')

WebFOCUS