Previous Topic

Next Topic

Book Contents

Book Index

General Description

This rule illustrates how to perform a number of checks on every line of a report. This is implemented using the Control-M/Analyzer DO BLOCK statement.

The employee personnel report shown below is used with this rule. On each employee line, the rule performs three checks:

For each line with an error, the employee details are printed with an appropriate error message.

Figure 389 Sample Employee Personnel Report

E M P L O Y E E S     R E P O R T   -----   FOR MANAGEMENT  DEPARTMENT     DATE:  08/08/00

     

EMPLOYEE EMPLOYEE  OFFICE ANNUAL  SOCIAL       NO. OF     JOB CLASS UNION  INSURANCE SICK VAC

   NO.     NAME      NO.   SAL    SECURITY NO.DEPENDENTS  CODE      DUES            DAYS DAYS

======== ========  ====== ======  ============ ========== ========= ====== ========= === ====

64263    A. HERMAN   01   97,000  XXX-YY-ZZZZ     4                 212.00    372.00  04   14

64535    V. GOLD     06   57,000  XXX-YY-ZZZZ     2                 106.00    252.00  01   05

65173    S. PATTEL   14   86,500  XXX-YY-ZZZZ     2                 234.00    390.00  02   09

65225    D. HAMILTON 08   67,500  XXX-YY-ZZZZ     2                 156.00    222.00  01   07

65229    J. NEWMAN   19   46,500  XXX-YY-ZZZZ     5                 133.00    399.00  00   07

65253    T. MASUIE   14   39,500  XXX-YY-ZZZZ     3                 214.00    181.00  01   07

65474    S. SMITH    16   64,500  XXX-YY-ZZZZ     6                 044.00    056.00  00   06

65551    J. WAYNE    06   55,000  XXX-YY-ZZZZ     6                 151.00    222.00  03   07

65571    J. TAYLOR   11   29,000  XXX-YY-ZZZZ     2                 156.00    220.00  01   07

65653    R. JOHNSON  14   26,000  XXX-YY-ZZZZ     3                 119.00    256.00  04   07

65763    R. BURKE    07   30,500  XXX-YY-ZZZZ     2                 098.00    301.00  01   06

65774    R. ONYON    08   27,500  XXX-YY-ZZZZ     2                 156.00    222.00  01   07

65838    G. LEVY     04   29,500  XXX-YY-ZZZZ     2                 065.00    118.00  02   07

65965    J. WEISSMAN 04   37,500  XXX-YY-ZZZZ     4                 151.00    222.00  05   00

Parent Topic

Rule Logic