PREFILL NAMES ROSTER FROM PRELOADED LOOKUP FILE
Posted: December 26th, 2020, 5:47 pm
Dear CSPRO Community,
I need urgent help. Am trying to prefill a roster from a lookup table, i keep getting an error message, Error(13): "Invalid function call(Multiple Record/Group/Block/Item name expected" as seen in the attachment.
I can't seem to figure out what is wrong with this syntax. I want the ID number and names to be prefilled from an earlier survey data. This is my coding. However, am not sure, if this is the way to go about.
preproc
if loadcase(PES_PRELOAD_DICT, A1,A2,A3,A4,A5,A6,A11A ) <> 1 then
errmsg("Household not found in preload data file");
stop(1);
endif;
// Prefill in names in names roster from enumerator data file
numeric numPreloadIndividuals = count(PES_PRELOAD_DICT.PES_PRELOAD_REC);
do numeric i = 1 while i <= numPreloadIndividuals
P0(i) = IDNO_PLR(i);
P1(i) = B1_PRL(i);
do
enddo;
Attached is the application.
Thanks in advance.
I need urgent help. Am trying to prefill a roster from a lookup table, i keep getting an error message, Error(13): "Invalid function call(Multiple Record/Group/Block/Item name expected" as seen in the attachment.
I can't seem to figure out what is wrong with this syntax. I want the ID number and names to be prefilled from an earlier survey data. This is my coding. However, am not sure, if this is the way to go about.
preproc
if loadcase(PES_PRELOAD_DICT, A1,A2,A3,A4,A5,A6,A11A ) <> 1 then
errmsg("Household not found in preload data file");
stop(1);
endif;
// Prefill in names in names roster from enumerator data file
numeric numPreloadIndividuals = count(PES_PRELOAD_DICT.PES_PRELOAD_REC);
do numeric i = 1 while i <= numPreloadIndividuals
P0(i) = IDNO_PLR(i);
P1(i) = B1_PRL(i);
do
enddo;
Attached is the application.
Thanks in advance.