Ask the Expert

Define a printer to print a batch report only if there is data

I am looking for a way to print a batch report only if there is data to print. If no data is selected in the report, then nothing would be printed.

    Requires Free Membership to View

The best way is to make sure that the spool file is empty when the job is run, by not writing anything to the list -- i.e., if you were to run it online, the report wouldn't appear to leave the selection screen.

This was first published in October 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: