Regenerate Search Key (JALExtGenerarClave)

Top  Previous  Next

You may add this extension to a “Process” type procedure over an audit file, so you can process its records and modify these, so its search key matches the current criteria. See the “ProcessAudit” procedure in the example program.

Suppose that you determine that certain search key is not useful for your queries, and you decided to change it at the global level (either by key or by embedded code). This will be applied to the new records for that moment on, but the “old” records inside the audit file will be with the old search key specification.

Running this process, the search key is changed to match the current design.

If the global "compress" option is activated, the changed record will be compressed upon saving to the file, no matter its initial state.

The regeneration process will be applied over the primary file specified on the “Process” template (Not necessarily the audit file mentioned in the global extension). This allows you to specify regeneration processes to run over backup audit files.

This process doesn't requiere exclusive access to the audit file, can be run with your system in use and in a network.