Close an audit file.
call "CBL_AUDIT_FILE_CLOSE" using by value flags by value auditfile-handle returning status-code
Typedef | Picture | |
---|---|---|
flags | cblt-x4-comp5 | pic x(4) comp-5 |
auditfile-handle | cblt-pointer | pointer |
flags | Control flags
|
||||||||||||||||||
auditfile-handle | Audit handle returned by the CBL_AUDIT_FILE_OPEN API. |
Nothing
78-AUD-RET-SUCCESS |
78-AUD-RET-INVALID-HANDLE |
78-AUD-RET-FILE-NOT-DUMPED |
CBL_AUDIT_FILE_CLOSE() is used to close the audit file, or audit file collection, identified by the auditfile-handle parameter. The flags parameter can be used to control whether or not the file, or files if an audit file collection is associated with the handle, is marked as being 'dumped'. Once a file is marked as 'dumped', it can be reused by the audit event consolidator process.
copy "mfaudit.cpy ". 01 auditfile-handle pic x(4) comp-5. 01 flags pic x(4) comp-5. ... compute flags = 78-AUDITFILE-FLAG-CLOSE-CURRENT b-or 78-AUDITFILE-FLAG-CLOSE-DUMPED call "CBL_AUDIT_FILE_CLOSE" using by value flags by value auditfile-handle ...
Related topics: