I have a program that replaces missing data and watn it to repeat unitl there are no more missing values. How would i got about doing this. So far i have, which does not work:
data Subjects;
nmiss=NMISS(wheezecomp);
%let missvaluesw=NMISS(wheezecomp);
%let missvaluesc=NMISS(coughcomp);
run;
do while (&missvaluesw ~= 0 AND &missvaluesc ~= 0);
... more code filling in missing data for wheezecomp and coughcomp...
data Subjects;
set Subjects;
%let missvaluesw=NMISS(wheezecomp);
%let missvaluesc=NMISS(coughcomp);
run;
end;
data Subjects;
nmiss=NMISS(wheezecomp);
%let missvaluesw=NMISS(wheezecomp);
%let missvaluesc=NMISS(coughcomp);
run;
do while (&missvaluesw ~= 0 AND &missvaluesc ~= 0);
... more code filling in missing data for wheezecomp and coughcomp...
data Subjects;
set Subjects;
%let missvaluesw=NMISS(wheezecomp);
%let missvaluesc=NMISS(coughcomp);
run;
end;