Display is the Good option to debug where everyone use that.
My idea is you can define one output file with filler x(20 or 30), when u enter each paragraph name, write
Move " XXX-PARA-NAME" to output-variable and write into the o.p file immediately.
Close the output file at the end of the program. But the same does the job as display instead of writing in the spool your going to write into the o.p file.