issue w/ multi-level system-controlled entry
Posted: July 9th, 2013, 6:07 am
good day!
the system-controlled entry program i am developing has 2 levels - household and individual. our practice here is to assign special values (9,99,999,...) to skipped/NAP fields rather than keep them blank. what i noticed was that when i try to open the data file using a text editor, the skipped fields in the rosters in the household level do not retain the special value/s i assigned thru logic. they still remain blank. but at the individual level, the rosters seem ok (retain assigned special values). though note that during entry, the values i assigned do appear in the skipped fields (dark gray boxes).
here's my sample code automating the line number in my household members roster (HHMEMS) of which i set the # occurrence to 30:
(item LINE is protected)
PROC LINE
preproc
i=curocc(HHMEMS);
if i<=TOTAL then
$=i;
skip to VAR1;
else
$=99;
skip to VAR1;
endif;
in this particular sample, when i check the data file using a text editor, the item LINE has no single value in it -- all blank spaces for all occurrences.
am i doing something wrong? please help. thank you.
the system-controlled entry program i am developing has 2 levels - household and individual. our practice here is to assign special values (9,99,999,...) to skipped/NAP fields rather than keep them blank. what i noticed was that when i try to open the data file using a text editor, the skipped fields in the rosters in the household level do not retain the special value/s i assigned thru logic. they still remain blank. but at the individual level, the rosters seem ok (retain assigned special values). though note that during entry, the values i assigned do appear in the skipped fields (dark gray boxes).
here's my sample code automating the line number in my household members roster (HHMEMS) of which i set the # occurrence to 30:
(item LINE is protected)
PROC LINE
preproc
i=curocc(HHMEMS);
if i<=TOTAL then
$=i;
skip to VAR1;
else
$=99;
skip to VAR1;
endif;
in this particular sample, when i check the data file using a text editor, the item LINE has no single value in it -- all blank spaces for all occurrences.
am i doing something wrong? please help. thank you.