VA FileMan V. 22.0 Programmer Manual Banner


 

Main Chapter Getting Started Manual Advanced User Manual

Classic VA FileMan API


IXALL^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

IXALL^DIK reindexes all cross-references for all entries in a file. It only executes the SET logic.

Before reindexing, you should be familiar with the effects of all relevant cross-references (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

The global root of the file to be indexed.

 
Examples

Example 1

A simple call to reindex the EMPLOYEE file would be:

    >S DIK="^EMP(" D IXALL^DIK

Example 2

The reindexing of data dictionary #3 would be:

    >S DA(1)=3,DIK="^DD(3," D IXALL^DIK
	 

 


Reviewed/Updated: March 4, 2007