Informix Error -1335
-1335 A report is accepting output or being finished before it has been
started.The program executed an OUTPUT TO REPORT or FINISH REPORT statement before it executed a START REPORT. Review the program logic that leads up to this statement to find the cause of the error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1335 fires when OUTPUT TO REPORT or FINISH REPORT executes without a preceding START REPORT for that report — per the official guidance, these three statements have a required
ordering.
OUTPUT TO REPORTexecuted beforeSTART REPORT, per the official guidance — the direct, common cause.FINISH REPORTexecuted beforeSTART REPORT, per the official guidance — the other direct, common cause.
Solutions / Resolution
- Review your program logic to ensure statements are executed in the correct order, per
the official guidance —
START REPORTmust precede anyOUTPUT TO REPORT/FINISH REPORTfor that report.
Examples
OUTPUT TO REPORT without START REPORT
OUTPUT TO REPORT order_report(order_id, status)
-- -1335: START REPORT order_report was never executed
Corrected
START REPORT order_report
OUTPUT TO REPORT order_report(order_id, status)
FINISH REPORT order_report
Diagnostic Checks
- Trace the program's execution order for the report in question, and confirm
START REPORTexecutes before anyOUTPUT TO REPORT/FINISH REPORTcalls.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -1335 in this set yet.
OUTPUT TO REPORT/FINISH REPORT ran before START REPORT for that report — check the
program's execution order.