Opening a cursor v15
Before you can use a cursor to retrieve rows, you must open it using the
name is the identifier of a cursor that was previously declared in the declaration section of the SPL program. Don't execute the
OPEN statement on a cursor that is already open.
This examples shows an
OPEN statement with its corresponding cursor declaration: