



The CLOSE statement terminates the processing of volumes and files.
___ Format 1--Sequential _______________________________________________
| |
| <____________________________________________________ |
| >>__CLOSE____file-name-1__ ___________________________________ _|___>< |
| | (1) | |
| |_ _REEL____ __ __________________ _| |
| | | (1)| |_ _____ __REMOVAL_| | |
| | |_UNIT____| | |_FOR_| | | |
| | |_ WITH NO REWIND _| | |
| | (1) | |
| |_ ______ __ _NO REWIND____ ________| |
| |_WITH_| |_LOCK_________| |
| |
| Note: |
| (1) Under OS/390, the REEL, UNIT, and NO REWIND phrases are not valid |
| for VSAM files. Under AIX, OS/2, and Windows, the UNIT, REEL, |
| and NO REWIND phases are treated as a comment. Although, the |
| file status will be set to 07, indicating a successful completion |
| of a CLOSE for a non-reel/unit medium. |
| |
|________________________________________________________________________|
___ Format 2--Indexed and Relative Files _______________________________
| |
| <_________________________________ |
| >>__CLOSE____file-name-1__ ________________ _|______________________>< |
| |_ ______ __LOCK_| |
| |_WITH_| |
| |
|________________________________________________________________________|
X ___ Format 3--Line Sequential Files (Workstation Only) _________________ X | | X | <____________________________________________________ | X | >>__CLOSE____file-name-1__ ___________________________________ _|___>< | X | | (1) | | X | |_ _REEL____ __ __________________ _| | X | | | (1)| |_ _____ __REMOVAL_| | | X | | |_UNIT____| | |_FOR_| | | | X | | |_WITH NO REWIND___| | | X | | (1) | | X | |_ ______ __ _NO REWIND____ ________| | X | |_WITH_| |_LOCK_________| | | | X | Note: | X | (1) Under AIX, OS/2, and Windows, the UNIT, REEL, and NO REWIND | X | phases are treated as a comment. Although, the file status will | X | be set to 07, indicating a successful completion of a CLOSE for a | X | non-reel/unit medium. | | | |________________________________________________________________________|
Under AIX, OS/2, and Windows, REEL and UNIT are treated as comments.
Under AIX, OS/2, and Windows, WITH NO REWIND and FOR REMOVAL are treated as comments.
If the file is in an open status and the execution of a CLOSE statement is unsuccessful, the EXCEPTION/ERROR procedure (if specified) for this file is executed.
Subtopics:
© Copyright IBM Corp. 1991, 1998
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.