i have dataset like
fname lname
john kilber
and i want output like this
fname lname
john kilber
john kilber
john kilber
john kilber
kilber
how to do this please help me out...
How about:
data want;
set have;
output;
output;
output;
output;
fname=' ';
output;
run;
Do loops?
data want (drop=i);
set have;
do i=1 to 5;
output;
end;
run;
Really not the most difficuly update:
data want (drop=i);
set have;
do i=1 to 5;
if i=5 then fname="";
output;
end;
run;
Is there some logic that the fifth version does not have the fname? is it always to create exactly 5 records?
no suppose you are working in comany and client want output as i shown above
How about:
data want;
set have;
output;
output;
output;
output;
fname=' ';
output;
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!