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
problem in using soccurs()
-
Jing Liu
- Posts: 42
- Joined: July 1st, 2015, 3:19 am
problem in using soccurs()
You do not have the required permissions to view the files attached to this post.
-
Jing Liu
- Posts: 42
- Joined: July 1st, 2015, 3:19 am
Re: problem in using soccurs()
Solved.
Thanks! Greg.
Thanks! Greg.
-
dinvictor
- Posts: 5
- Joined: February 19th, 2016, 4:40 pm
Re: problem in using soccurs()
Can you please share how you solved?
-
dinvictor
- Posts: 5
- Joined: February 19th, 2016, 4:40 pm
Re: problem in using soccurs()
Maybe Greg, if not Jing will be so kind to share with us?