carp,
I attempted to use your suggestion, had trouble with it, did some more research, and am now trying to incorporate ideas from a combination of resources (including yourself).
Here my attempt...
DECLARE
CURSOR c1 IS
SELECT job, failures, broken, what
FROM user_jobs
WHERE...