We would like to be able to dynamically close a VSAM file in a Batch NATURAL Session (Mainframe VSE).
We are running NATURAL RPC Server and need to close otherwise we have to terminate RPC server to free up VSAM files for other jobs/utilities. There is sufficient documentation on how to OPEN a VSAM file but I can find nothing about how to CLOSE it.

We considered writing an assembler program to close the file given a DDNAME, however that would not release the buffers NATURAL has allocated in VSIZE, so a USR routine from Software AG would be very nice???