RegrasNotFoundUse cursor%NOTFOUND instead of NOT cursor%FOUNDUse cursor%NOTFOUND instead of NOT cursor%FOUND.