Besides the following General Performance Considerations, what else may be considered to help improve performance:
Easytrieve Plus Report Generator, release 6.4
Easytrieve Plus Report Generator Specific Considerations:
FILE BUFFERING
The BUFNO parameter of the FILE statement establishes the number of input/output buffers allocated for the file. The default in Easytrieve+ is two. Since minimizing the number of physical I/O operations is essential to maximizing performance, you should experiment with larger BUFNO values. Please note this value will only affect the buffering for sequentially organized files, such as QSAM. VSAM file buffers should be allocated in the JCL through the use of the AMP parameter or in the VSAM file definition.
SORTING
By default, the Easytrieve options file provides three dynamically allocated sortwork datasets. If you would like to increase this number or turn off this option to use your own SORTWK datasets from your JCL, use the WORK parameter on the PARM statement.
PARM WORK 0 this will turn off any dynamic allocation by Easytrieve.
PARM WORK 5 this will dynamically allocate 5 sortwork datasets
To change the Easytrieve options file to eliminate the need to code the PARM, change the NUMWORK parameter, for example:
NUMWORK=0 this means you must always have SORTWORK DDs in your JCL
NUMWORK=5 this means you will always have five dynamically allocated sortwork datasets provided by Easytrieve. You will NOT use any of the SORTWORK DDs from the JCL.
Also, when implementing a SORT activity, you can use the BEFORE parameter to identify a procedure to pre-screen input records. Adding a SELECT clause can cut down the number of records used by the Easytrieve program.
VIRTUAL FILE MANAGER (VFM)
The VFMSPAC parameter in the options table (which may be overridden with the VFM parameter in the PARM statement) could have an important role in determining execution time. EASYTRIEVE PLUS uses its virtual file manager (VFM) to allocate the temporary data sets required during processing. Whenever a programmer builds a temporary file within his program by specifying VIRTUAL in the FILE statement VFM resources are used.
Additionally, Easytrieve creates work files to hold report data whenever the SEQUENCE statement is specified in the report, or if multiple reports are generated from the same program. VFM space is 40% of the total region, or partition space for most Easytrieve programs.
Should a program exhaust the region memory specified by the above parameters, it will satisfy any additional requirements by acquiring DASD space via the EZTVFM dataset, specified in the JCL. Typically the EZTVFM dataset is allocated in cylinders or work DASD. In an MVS environment, you may specify UNIT=VIO on the EZTVFM DD statement instead of UNIT=DISK or UNIT=SYSDA. The use of VIO is quicker than DASD and the space it utilizes is not part of the region in which the program is running.
In the case of multiple reports in the same program with a high volume of VFM usage, use of the FILE parameter of the REPORT statement is highly recommended. Since the EZTVFM data set used for the overflow of VFM is limited to one pack, contention for the space can be high when multiple reports are generated, causing performance degradation. The FILE parameter enables the programmer to specify separate work datasets to be used instead of the VFM area reducing the EZTVFM contention.
When comparing fields or doing any arithmetic operation, use fields that have the same data type, length, and number of decimals.