Operation Notes |
 |
After calling BKCLOSE, you should check the status parameter to determine if the file was closed successfully.
A successfully closed file is no longer available for processing
until it is reopened. Note that a KSAM file can be closed and then
reopened in order to specify a different access mode or type of
processing.
The BKCLOSE procedure does not remove the file from the system.
To do this, you should use the PURGE command of KSAMUTIL or MPE/iX.
The example in Figure B-1 “Closing a KSAM File with BKCLOSE” closes a file identified
by the file number in F. It then checks the status and prints a
message if the status shows any code except the zero for successful completion.