Hi Everyone,
Could you please help me to add a row of blank at the end of my file?
Thank you,
HHC
data want;
set have end=eof;
output;
if eof then do;
call missing (of _all_);
output;
end;
run;
Is this a dataset (in which case you'll need to provide some strong reasons for adding a blank row) or a exported dataset or a report?
What have you currently attempted?
data want;
set have end=eof;
output;
if eof then do;
call missing (of _all_);
output;
end;
run;
Am with @ballardw here, there is no reason I can think of to have a blank row in a dataset, it will just mess up procedures on the data, could even affect results. What is the reasoning? If you want categories regardless of prescence, then use a template dataset, i.e. create a dataset with the combinations you need, and then merge that onto a results dataset.
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.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.