Cursor attributes v14
Each cursor has a set of attributes associated with it that allows the program to test its state. These attributes are %ISOPEN, %FOUND, %NOTFOUND, and %ROWCOUNT.
%isopen %found %notfound %rowcount summary_of_cursor_states_and_attributes