Hello,
Spaces in variables names are not a goodf idea. The following program used the provided names
with spaces replaced by underscores.
data have;
length refper company placeholder_r0010 placeholder_r0020 placeholder_r0030 placeholder_r0040 3.;
call missing(of _ALL_);
run;
data placeholders;
infile cards dlm="," dsd;
length name $30.;
input name $ code $;
cards;
Goodwill , R0010
Deferred acquisition costs , R0020
Intangible assets , R0030
Deferred tax assets , R0040
;
run;
data _NULL_;
set placeholders end=eof;
if _N_=1 then call execute('data want; set have;');
call execute(cats('rename placeholder_',code,'=',tranwrd(strip(name)," ","_"),';'));
if eof then call execute('run;');
run;
... View more