Use the CLOSE statement to disconnect your program from the VSAM file. If
you try to close a file that is already closed, you will get a logic
error. You should check the file status key after each CLOSE statement.
In the event that you do not close a VSAM file, COBOL will automatically
close the file for you, giving you a warning-level diagnostic message.
See "Automatic Closing of Files" details.
No comments:
Post a Comment