file | The name of a DATASET definition. |
nbr | Optional. An integer constant specifying how many indexes to create "on the fly" for speedier access to the specified DATASET file (only). If > 1000, specifies the amount of memory set aside for these indexes. |
Return: | PRELOAD returns a record set. |
The PRELOAD function leaves the file in memory after loading (valid only for Data Delivery Engine (Roxie) use). This is exactly equivalent to using the PRELOAD option on the DATASET definition.
Example:
MyFile := DATASET('MyFile',{STRING20 F1, STRING20 F2},THOR);
COUNT(PRELOAD(MyFile))
See Also: DATASET