CLOSE

[label] CLOSE (address[,(options)],...)

[,MODE=24|31]

Parameters

address
The address of the ACB or DCB for each file to close.
MODE=24|31
For QSAM and BSAM files, specifies whether the program is running in 24-bit or 31-bit mode. No effect for VSAM files.

Comments

Closes an active VSAM, BSAM or QSAM file or files at execution time.

List and execute forms are also available.

If the VSECOMP compiler directive is specified, Enterprise Developer Assembler support includes emulating the DOS/VSE version of this macro. In this case the expanded code is larger than that produced on the mainframe and may cause NO BASE REGISTER error messages. The unusual DOS/VSE register conventions for register 1 are also supported, so syntax of the form CLOSE (1) is accepted. However, the multiple operand syntax of the DOS/VSE CLOSE macro is not supported, so use the MVS syntax instead.

The DOS/VSE-specific macro CLOSER (Close a File Relocatable) is simply mapped to the standard CLOSE macro. Self-relocating code is not generated as it would be under the DOS/VSE environment so modules using CLOSER cannot be relocated at execution time by simply copying the generated machine code from one address to another.

CLOSE VSAMFILE