To turn record caching on

  1. Locate the program configuration file (programcode.cfg), which resides in %LAWDIR%\ productline\systemcode \src or the %LAWDIR%\productline\obj directory. Create the file if necessary.
  2. CACHE FileName NumberOfRecords

    To select all records, specify -1 for NumberOfRecords.

  3. Save the configuration file.

    Example

    To turn caching on for the Accrual Code file (Apaccrcode) when running the AP200 program, make the following entry in the AP200.cfg configuration file:Add the following parameter to the file, specifying the file name and the number of records to cache:

    CACHE           Apaccrcode      20

    The number 20 in the entry specifies that up to twenty records are held in the cache for this file-program combination. Each time the program initially reads a record, it places the record in the cache until 20 records are cached. After that, the cache takes on no more records, unless a record it holds is deleted from the file or the program performs a delete range call (DELETERNG).