Opening a Cursor v12
Before a cursor can be used to retrieve rows, it must first be opened. This is accomplished with the OPEN
statement.
name
is the identifier of a cursor that has been previously declared in the declaration section of the SPL program. The OPEN
statement must not be executed on a cursor that has already been, and still is open.
The following shows an OPEN
statement with its corresponding cursor declaration.