Beruflich Dokumente
Kultur Dokumente
CSPRO Applications
Well now create a data entry application The application will make use of the test dictionary and form Before creating the application, Ill briefly discuss
order of operations in CSPRO data entry path most common data entry commands
Preproc
logic executed before item for example, skip a variable logic executed after item for example, check if data entered is consistent for example, skip to a variable
Postproc
Order of Operations
Level 1 preproc
Form 2.1 preproc Field2.1.1 preproc Field 2.1.1 postproc Form 2.1 postproc ...other level 2 forms
Level 2 postproc
Level 1 postproc
The data entry path contains all of the questions that a respondent should be asked It is determined by
CSPRO allows one to control completely the data entry path The first step is to
open DE application go to options --> data entry select system controlled (while you are there, make all alphanumeric variables upper case)
Questionnaire Skips
Reentering
To force the data entry operator to reenter a field (e.g., if the data entered are inconsistent) use
reenter;
if command
Ending a Level
the last variable in the data path is not the last variable on the questionnaire you have entered the last woman or under-five questionnaire
In field/roster/form proc, passes control to the level postproc In level preproc or postproc, passes control to postproc of next highest level In postproc of level 1, pass control to the form files postproc
Ending a Group
A group is a record or roster A group is ended by the endgroup command The effect of the command depends upon context:
In an item procedure, passes control to the current groups postproc In the preproc of the group, skips the entire group and passes control to the groups postproc
Working Variables
Working variables must be declared in the global procedure Numeric working variables can be declared together
Setting Parameters
Assign a value to a working variable created for the purpose Comment your parameter using braces For example
Recoding Variables
To recode variables, use the recode command The following logic recodes womens age into groups
recode WM9 15-19 20-24 endrecode; => => => => agegrps; 1; 2; 3;
If the cluster number is invalid, the following code will display an error message
errmsg(0010);
Error messages must have user-defined text to be effective For the preceding example, one would add a line
0010 cluster number invalid
to do so, right click on the message tab while editing a procedures logic
The values of any variables listed after the error message number will be passed to the error message Parameters are displayed in the error message using
Select file --> new Select object type data entry application Use file name: test Use folder: c:\mics\cspro\test Click next Click yes when prompted to use the test form Click finish
Add logic to
Click once on execute button on toolbar (traffic light) Use nodata.dat datafile Enter a case