data have;
do i=1 to 200;
myvar+i*i;
output;
end;
run;
data want;
set have(obs=100);
set have(firstobs=2 keep=myvar rename=(myvar=myvarPlusOne));
y=myvarPlusOne-myvar;
run;
data have;
do i=1 to 200;
myvar+i*i;
output;
end;
run;
data want;
set have(obs=100);
set have(firstobs=2 keep=myvar rename=(myvar=myvarPlusOne));
y=myvarPlusOne-myvar;
run;
data have;
set sashelp.heart;
run;
%let col=4;
%let row=6;
data _null_;
set sashelp.vcolumn(where=(libname='WORK' and memname='HAVE' and varnum=&col.));
call execute(cat('data want;set have;if _n_= ',&row.,';keep ',name,';run;'));
run;
🚨 Early Bird Rate Extended!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.