A GENERATE (Report Writer syntax) statement has been executed before a corresponding INITIATE statement.
Correct by revising your program execution flow.