The more, the merrier: data have; do i=1 to 10; if i=1 then var=100; else var=.; output; end; drop i; run; /*set1--join*/ data want_set1; set have; if _n_=1 then set have(obs=1 rename=var=_var); var=coalesce(var,_var); drop _var; run; /*set2--point= option*/ data want_set2; set have; if _n_=1 then i=_n_; set have point=i; run; /*set3--DOW*/ data want_set3; do _n_=1 to nobs; set have nobs=nobs; if _n_=1 then _var=var; else var=_var; output; end; drop _var; run; Haikuo
... View more