08-28-2014 08:13 AM
Can I check why? It seems in your example you want a dataset with a 1, 2 combination 3 times. There are better ways than creating one dataset and then appending that three times, do loops for instance, retain statement setting the value != previous etc.
08-28-2014 04:49 PM
How silly are we allowed to get? Why write something simple when you can confuse everybody with a macro?
%local N i j;
set have nobs=_total_obs_;
call symputx ('N', _total_obs_);
%do i=1 %to 3;
%do j=1 %to &N;
set have (firstobs=&j obs=&j);
Need further help from the community? Please ask a new question.