The
endlevel statement ends data entry for the current level of the current questionnaire. The effect of this statement depends on where it is used. If it is used in a field, roster, or form procedure, all remaining procedures within that level are skipped and control passes to the level
postproc.
If the statement is executed in a level preproc or postproc, control passes to the postproc of the next-highest level. If it is used in the highest-level postproc, control passes to the form file's postproc (if there is one), and then data entry is terminated for the current case.
In
system-controlled applications, CSPro will continue to add cases at the lowest level of a multiple-level dictionary until it is told to stop by
endlevel. Therefore, the statement should be used in the
postproc of the lowest level to end data entry at that level.