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;
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.