Do you already have the data collected? Are you going to restructure the old data file to a new data file?
Anyways... This code should work.
Code: Select all
if pos ("A", Q36) then Q36A = 1; endif;
Code: Select all
if pos ("A", Q36) then Q36A = 1; endif;
Code: Select all
PROC ID
preproc
if demode() = add then
if visualvalue(ID) = notappl then
ID = 1;
else
ID = visualvalue(ID) + 1;
endif;
endif;