|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|
EN^DIK reindexes one or more cross-references of a field for one entry in a file. It executes the KILL logic first and then executes the SET logic of the cross-reference.
Before reindexing, you should be familiar with the effects of all relevant cross-references that could be fired (including bulletins, triggers, and MUMPS-type).
If you are reindexing an entry at the top level of a file, set DIK to the global root of the file.
If you are reindexing a subentry, set DIK to the full global root leading to the subentry, including all intervening subscripts and the terminating comma, up to - but not including - the IEN of the subfile entry to reindex.
If you are reindexing an entry at the top level of a file, set DA to the internal entry number of the file entry to reindex.
If you are reindexing an entry in a subfile, set up DA as an array, where DA=entry number in the subfile to reindex, DA(1) is the entry number at the next higher file level,...DA(n) is the entry number at the file's top level.
Use the field number (to get all indexes) or the field number and specific indexes of the cross-reference. See the ENALL^DIK entry point description for examples.
Reviewed/Updated: March 4, 2007