Do you want to insert a row or simply rename the variable? If it's the latter, then (assuming you dataset is called have), when opening the dataset simply use something like:
set have (rename=(characteristic=gender);
Otherwise, if you really want to insert a row, you may first have to use a length statement (before the set statement) and then include code (after the set statement):
data want;
length characteristic $6;
set have;
if characteristic='F' then do;
hold=characteristic;
characteristic='Gender';
output;
characteristic=hold;
output;
end;
else output;
run;
Art, CEO, AnalystFinder.com
... View more