Print an exception report while posting

Use an OUTPUT process for a posting run when the user needs a report of failed records. Select Image lets the frame choose whether to print a line for the current record.

  1. Put the posting result and record key where the frame can use them.
  2. In Select Image, set ALTERNATE IMAGE NUMBER to 0 to suppress the detail line for a successful record. Select the exception image for a failure and print the key and message.
  3. Choose KEEP for PRINT MODE if the report file should remain available after the run.

There are advantages for using OUTPUT processes instead of UPDATE processes, for posts:

Code the OUTPUT log to look the way you want it. Set the --- PRINT MODE to KEEP, using the knowledge of --- PRINT FILE PATHNAME to move it to a desired directory.

Or, you can put the ILF code you'd normally put in your UPDATE into the 'Select Image' ILF series of an OUTPUT's Frame. Then ...

If the record posts 'OK', then SET --- ALTERNATE IMAGE NUMBER = 0 (causing it to print nothing for this good record).

If the record has some problem or you want to issue a warning, SET --- ALTERNATE IMAGE NUMBER = 1 (causing the Frame to print the OUTPUT's Image containing the primary key, and whatever supporting information (including ERROR and WARNING messages) you want).

Comments:

Read what other users have said about this page or add your own comments.


 
Topic revision: r2 - 03 Dec 2026, AdminUser - This page was cached on 03 Dec 2026 - 19:41.

Powered by Foswiki. Wiki content belongs to its contributing authors.