The CLOSE statement closes a cursor. It is important to close a cursor to release resources.
LSQL CLOSE cursorname
The name of the cursor you are closing.
Note: The LSQL command that executes the CLOSE statement must be issued from a CLIST or from a REXX procedure.
Example
To close the cursor named CURSTAT, issue this LSQL command from a CLIST:
LSQL CLOSE CURSTAT
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |