This is what the stored procedure looks like

```
CREATE OR REPLACE PACKAGE TABLE.PROCEDURES IS

  type reference_cursor IS REF CURSOR;

  PROCEDURE get_attrs(output out reference_cursor) IS
  BEGIN
    OPEN output FOR
      SELECT *,
          FROM ATTRS a
         ORDER BY a.id;
  EXCEPTION
    WHEN OTHERS THEN
      RAISE;
  END get_attrs;
END PROCEDURES;
/

```

I want to call the get\_attrs stored procedure and get the output from the output variable of type reference\_cursor.

This is what I came up with but it is giving me the following error.

```
DECLARE
  outputTABLE.PROCEDURES.reference_cursor;
  output_records TABLE.ATTRS%ROWTYPE;
  BEGIN TABLE.PROCEDURES.get_attrs(output);
      LOOP
        FETCH
        output INTO output_records;
        EXIT WHEN output_records%NOTFOUND;
        dbms_output.put_line(output_records.id);
      END LOOP;
  CLOSE output;
END;

```

And error

```
PLS-00324: cursor attribute may not be applied to non-cursor 'OUTPUT_RECORDS'

```

Any idea what I maybe doing wrong?