|Contents:||Main||Chapter||See Also:||Getting Started Manual||Advanced User Manual|
Reindexing Quick Reference
|Entry Point||Reindexes Entries||Reindexes Xrefs||Executes Logic|
|EN^DIK||1||Some or all for 1 field||KILL then SET|
|EN1^DIK||1||Some or all for 1 field||SET|
|EN2^DIK||1||Some or all for 1 field||KILL|
|ENALL^DIK||All||Some or all for 1 field||SET|
|ENALL2^DIK||All||Some or all for 1 field||KILL|
|IX^DIK||1||All||KILL then SET|
ENALL2^DIK executes the KILL logic for one or more cross-references on a specific field for all entries in a file.
Before calling this entry point, you should be familiar with the effects of executing the kill logic for all cross-references that could be fired (including bulletins, triggers, and MUMPS-type).
NOTE: IXALL^DIK, IXALL2^DIK, ENALL^DIK, ENALL2^DIK, and the Re-Index File option on the Utility Functions menu set the 3rd piece of the 0 node of the file's global root (the file header) to the last internal entry number used in the file. They set the 4th piece to the total number of entries in the file.
If you are executing the kill logic for all entries at the top level of a file, set DIK to the global root of the file.
If you are executing the kill logic for all entries in a subfile only, set DIK to the full global root of the subfile.
If you are executing the kill logic for all entries at the top level of a file, this variable need not be set.
If you are executing the kill logic for all entries in a subfile, set up DA as an array, where DA(1) is the entry number at the next higher file level, DA(2) is the entry number one level above that, etc. DA(n) is the entry number at the file's top level. Since ENALL2^DIK executes the kill logic for all entries at a given file level, don't set the unsubscripted DA node.
Set DIK(1) to the field number (to get all cross-references defined on that field). For example:
OR, set DIK(1) to the field number and the names or numbers of specific cross-references on that field, all separated by up arrows (^). For example,
S DIK(1)=".01^B" S DIK(1)=".01^B^C" S DIK(1)=".01^1^2" D ENALL2^DIK
Reviewed/Updated: March 10, 2007