problem in using soccurs()

Discussions about CSEntry
Post Reply
Jing Liu
Posts: 42
Joined: July 1st, 2015, 3:19 am

problem in using soccurs()

Post 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
Attachments
dict and data.rar
(13.12 KiB) Downloaded 286 times
Jing Liu
Posts: 42
Joined: July 1st, 2015, 3:19 am

Re: problem in using soccurs()

Post by Jing Liu »

Solved.
Thanks! Greg.
dinvictor
Posts: 5
Joined: February 19th, 2016, 4:40 pm

Re: problem in using soccurs()

Post by dinvictor »

Can you please share how you solved?
dinvictor
Posts: 5
Joined: February 19th, 2016, 4:40 pm

Re: problem in using soccurs()

Post by dinvictor »

Maybe Greg, if not Jing will be so kind to share with us?
Post Reply