Generating Existing Reports from Earlier Versions

Before and after do print events are a new feature in version 8.1. However, reports created with previous versions of AcuBench are still supported by AcuBench. When you regenerate the report with version 8.1 the only change made to your original code is the insertion of an additional line containing a period (.) within the bench tags. This will not cause any compilation issues. Your .cbl source file will look something like this:

*{Bench}report-masterprintpara 
    Acu-RPT-report-MASTER-PRINT-LOOP. 
        . 
   *{Bench}end 
   * 
        PERFORM Acu-RPT-report-DO-PRINT-RTN.

If you want start coding using the new style you can go into the report composer and define the BeforeDoprint & AfterDoPrint events. You then can either manually delete the source outside the tags (starting with the PERFORM Acu-RPT-report-DO-PRINT-RTN.) or delete the source file and regenerate. Note however that once you remove your original code from the .cbl source file it cannot be brought back.

LoadGridInit and LoadGridNext events are also a new feature in version 8.1. However, reports with grids created with previous versions of AcuBench are still supported by AcuBench. When you regenerate the report with version 8.1 no changes are made to the AcuBench grid tags in your .cbl file.

If you want to start using these new grid events you will need to define and code them as described in Adding Report and Report Element Events and remove the previous tags by editing the .cbl source file or deleting the .cbl file itself. The new grid tags will only be generated if the old grid tags have been removed. Drawing a new grid control would insert the new tag for that control in the source, which makes it possible to have a mix of new and old style grid tags in the same source file.