BTEQ closes the export file when one of the following options is used:
- An EXPORT command specifying either another export file or the RESET option
- A LOGOFF, EXIT or QUIT command
BTEQ does not close the file until the last file record has been written. If the file is read before it is closed, the last few records might be missing. They appear when the file is closed in response to the EXPORT, LOGOFF, EXIT or QUIT command.
In z/OS, if a disposition of MOD is specified in the JCL, the CLOSE option does not work.