How to suppress empty reports in Print Manager

 1 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
Woozy
Veteran Member
Posts: 709
Veteran Member
    I have a custom batch report that includes secondary "error" report.  When I run the program, the error report appears in Print Manager, even if it is empty (i.e. no errors).  When I select that report from Print Manager is shows "No Data in Report File - Check Report Parameters for Possible Error Message".

    Is there some way to suppress this report in Print Manager if it is empty?

    Thanks!  Kelly
    Kelly Meade
    J. R. Simplot Company
    Boise, ID
    Woozy
    Veteran Member
    Posts: 709
    Veteran Member
      I figured it out.  I can wait to do my "OPEN OUTPUT ERRORS-FILE" call until the first time I try to write to the error report.  At the end of processing, I check to see if the file has been opened before I attempt to do the "CLOSE ERRORS-FILE".  Works like a charm.

      Please let me know if there are issues with this approach.  Thanks!
      Kelly Meade
      J. R. Simplot Company
      Boise, ID