Example: Determine which files are affected by a database change
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
The following procedure demonstrates how you can use
the RCODE-INFO system handle with the TABLE-LIST and TABLE-CRC-LIST attributes
to help determine which files you need to recompile based upon a
database change. TABLE-LIST generates a list of
all the database tables that are referenced in the procedure file. TABLE-CRC-LIST generates
a list of the corresponding table CRC values stored in the compiled procedure
file. This example procedure then compares the CRC values in the
procedure file with those stored in the database. If any of the values
differ, you get a message stating that the procedure needs to be
recompiled, as shown:
|
This procedure does not generate any warnings or error messages.
If the r-code file was not compiled with any tables, then the attribute
returns the empty string. If the file is not found or is corrupted,
the attribute returns the Unknown value (?).