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;
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.