Seppo Mustonen : Programming Survo in C

Functions in library SURVO.LIB

conditions
Summary

int conditions(data)
SURVO_DATA *data; /* pointer to data structure */
Description

The conditions function reads and tests the IND, CASES and SELECT specifications according to data opened by data_open or data_open2. conditions can be called only once in each SURVO 84C module and it forms the basis for data scanning where unsuitable is the function for eliminating those observations (records) which do not satisfy the IND, CASES and SELECT restrictions.

Return Value

conditions returns 1 if IND, CASES and SELECT specifications have been written correctly. In case of an error -1 is returned.

See Also

unsuitable

Example

int i;
SURVO_DATA dat;

i=data_open("TEST",&dat);
if (i<0) return;
i=conditions(&dat);
if (i<0) { data_close(&dat); return; }


Front page of Survo C libraries