The following is a snippet from my code at the end to close a file. When it runs, the file does not completely finish it's output until after the second include file even though it closes the output stream between the include files. The message also doesn't show until after the screen output. I don't understand why the actions don't happen in order.
Code:
{mfreset.i}
IF excel THEN DO:
PUT STREAM excl SKIP.
OUTPUT STREAM excl CLOSE.
END.
MESSAGE SEEK(excl). PAUSE.
{mfgrptrm.i} /*Report-to-Window*/
END. /* Mainloop */
Last edited by a moderator: