Page 2 of 2

Re: Sub-Items

Posted: February 25th, 2016, 11:03 am
by josh
PERSON is a numeric variable. The occurrence label needs an alphanumeric or string. You can convert from the numeric to a string using maketext:
setocclabel(ROSTER000(curocc()), maketext("%d", PERSON));

Re: Sub-Items

Posted: February 26th, 2016, 4:37 am
by MrTaco
Thanks Josh....

Re: Sub-Items

Posted: March 2nd, 2016, 10:07 pm
by Saint
Hi,
Not sure why you would want to use the variable 'person' in the setocclabel function. By default, the roster occurrences are labelled with the numeric values which is the same as what you have in the setocclabel. It gets interesting to label by name or at least something different than the default occurrence labels. Especially so, when you want to carry information from one roster to another. For example, if you first roster just listed the names of all household members and then you move to a second roster to get detailed information of the members, then you can load the names from the first roster as the occurrence labels in the new roster to guide enumerators.

In the attached application, I have slightly modified your application to label the occurrences with the name of the person. Hope it helps with your understanding.