int conditions(data)
SURVO_DATA *data; /* pointer to data structure */
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.
conditions returns 1 if IND, CASES and SELECT specifications have been written correctly. In case of an error -1 is returned.
int i;
SURVO_DATA dat;
i=data_open("TEST",&dat);
if (i<0) return;
i=conditions(&dat);
if (i<0) { data_close(&dat); return; }