problem in using soccurs()
Posted: February 19th, 2016, 8:10 am
Hi,
I was trying to use soccurs() to load the total number of occurrences of record soccurs( HH_QUES ). I have data in data file, but i always get 0 from soccurs(). the dictionary is used as an external dictionary to load data. I got correct occurrences number if I use that for a roster record (tomhh = soccurs( ROSTER_HH )). But HH_QUES should have only 1 occurence if entered. But I always get 0.
May I ask if i did anything wrong?
if soccurs( HH_QUES ) <> 1 then
errmsg( "for checking 038, soccurs(HH_QUES) is %d ", soccurs( HH_QUES ) );
endif;
the dictionary and data files are attached.
best
jing
I was trying to use soccurs() to load the total number of occurrences of record soccurs( HH_QUES ). I have data in data file, but i always get 0 from soccurs(). the dictionary is used as an external dictionary to load data. I got correct occurrences number if I use that for a roster record (tomhh = soccurs( ROSTER_HH )). But HH_QUES should have only 1 occurence if entered. But I always get 0.
May I ask if i did anything wrong?
if soccurs( HH_QUES ) <> 1 then
errmsg( "for checking 038, soccurs(HH_QUES) is %d ", soccurs( HH_QUES ) );
endif;
the dictionary and data files are attached.
best
jing