Previous Topic

Next Topic

Book Contents

Book Index

Exception Handling

You can use report decollating mission parameters to perform powerful exception handling routines based on the appearance of specified report strings within the report. There are three main actions you can perform:

These actions are discussed on the following pages.

End the Report Decollating Mission With NOTOK Status

Based on the appearance of a particular string in a report, you can force the mission to end NOTOK. This would mean that the mission would be flagged as NOTOK on the Active Missions file, and that none of the job's reports would be printed by Control-D. The mission is flagged using parameter DO NOTOK.

  ON CLASS      = T         EXTWTR               DEST          FORM           

  PRT COPIES    LVL    USER                      DEST          MAX COPIES     

      PRINT/CDAM PARMS =                                                      

  WHEN LINE 00002 - 00002 COL 00012 - 00038 PRINT   REF NXT   CT     AND/OR

       STRING = GENERAL LEDGER REPORT                                         

    DO USER     = DVAC                  LVL    LINE     COL     -     S   T   

                                        SYNONYM =       CONCAT =              

    DO NAME     = GEN LEDGER REP               LINE     COL                  

    DO                                                                        

  WHEN LINE 00012 - 00012 COL 00026 - 00040 PRINT   REF NXT   CT     AND/OR

       STRING = LEDGER UNBALANCED                                             

    DO NOTOK                                                                  

    DO                                                                        

If any pages of the above report contain the string LEDGER UNBALANCED in the specified page location, the mission will be flagged as ended NOTOK and the reports will not be printed. This provides us with a good method of preventing the printing of reports that may contain erroneous information.

The reports can still be viewed online, which may help you determine the cause of the problem. From the User Report (Online Viewing) facility, you can issue a request to print the reports.

Parent Topic

Report Decollating Mission Parameters