Page 1 of 1

problem in using soccurs()

Posted: February 19th, 2016, 8:10 am
by Jing Liu
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

Re: problem in using soccurs()

Posted: February 19th, 2016, 12:46 pm
by Jing Liu
Solved.
Thanks! Greg.

Re: problem in using soccurs()

Posted: March 21st, 2016, 2:42 am
by dinvictor
Can you please share how you solved?

Re: problem in using soccurs()

Posted: April 3rd, 2016, 4:09 pm
by dinvictor
Maybe Greg, if not Jing will be so kind to share with us?