VA FileMan V. 22.0 Programmer Manual Banner


 

Main Chapter Getting Started Manual Advanced User Manual

Classic VA FileMan API


IXALL2^DIK: Reindex

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
IX1^DIK 1 All SET
IX2^DIK 1 All KILL
IXALL^DIK All All SET
IXALL2^DIK All All KILL

IXALL2^DIK executes the KILL logic 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) that could be fired.

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.

Input Variable
DIK

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, set DIK to the full global root of the subfile.

DA

If you are executing the kill logic for all entires 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 of the next higher file level, DA(2) is the entry number one level level above that, etc. DA(n) is the entry number at the file's top level. Since IXALL2^DIK executes the kill logic for all entries at a given file level, don't set the unsubscripted DA node.

 


Reviewed/Updated: March 14, 2007