next up previous contents
Next: 10.3.3 Appending cases Up: 10.3 Adding, Amending, and Previous: 10.3.1 Removing cases   Contents


10.3.2 Amending cases

Amending cases may also be necessary, such as in the case where the respondent's identity is not known at the time of sample selection but are provided at a later stage.

If only a few cases are to be amended, the cases can be corrected from the Control Panel. Click on Develop, Utility functions, and then click the CONTROL or CONFID data set buttons. Note that the records in both data sets need to be amended.

Alternatively, a programmatic approach can be used. An example of a SAS program is shown in Figure 28. Note that in the example the SCHSTR variable in CONTROL is also modified. This variable is normally created by the compiler to include by default the ID and respondent name23. Since the name is being modified here the SCHSTR variable also needs to changed. These are minimum changes; other variables may need amending according to the survey's needs.

Figure 28: Example of amending cases. This example does not use a share server.
\begin{figure}\centering
\begin{verbatim}libname DATACATI 'S:\GEIS\projects\MY...
...;
else do;
put 'Error modifying ID:' ID;
end;
run;\end{verbatim}
\end{figure}


next up previous contents
Next: 10.3.3 Appending cases Up: 10.3 Adding, Amending, and Previous: 10.3.1 Removing cases   Contents
Ross Corkrey 2006-02-14