Issue a CLOSE statement to end a cursor operation.
Keep this information in mind when using the CLOSE statement:
Use this syntax in an AOF rule or an OPS/REXX program:
ADDRESS SQL "CLOSE keywords" {cursorname}
[SYSTEM(ALL|EXT|sysnames)]
[SYSWAIT(seconds)]
[OUTPUT|NOOUTPUT]
[SYSPLEX]
Use this syntax to invoke the statement from a TSO/E REXX program or a TSO CLIST:
OPSQL CLOSE {cursorname}
You may specify these operands for the CLOSE statement:
Defines the name of the cursor operation you are ending.
Performs cross-system SQL operations. Specify one of these values:
Routes the SQL command to all active MSF-defined systems, including the local system.
Routes the SQL command to all remote, active MSF-defined systems.
Routes the SQL command to the specified systems. You may specify from one to eight system names as the value of sysnames.
For more information, see the chapter “Using the Relational Data Framework” in the User Guide.
Defines the number of seconds the SQL processor waits for output from a remote system. You may specify a value between 1 and 300 seconds.
Do not specify a value for SYSWAIT if you specify the SYSTEM(ALL), SYSTEM(EXT), or NOOUTPUT keywords.
Indicates whether the command returns output to the external data queue. Specify OUTPUT to have output returned; otherwise, specify NOOUTPUT.
NOOUTPUT is implied when:
(Optional) Reduces the scope of the SYSTEM(ALL|EXT) operand to MSF connected systems that belong to the same z/OS sysplex as the command issuer. The keyword has no effect on a list of explicit system names.
Example: CLOSE CURSTAT Command
To end the cursor operation named CURSTAT, you can issue this command from an OPS/REXX program:
ADDRESS SQL "CLOSE CURSTAT"
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |