BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
hhchenfx
Barite | Level 11

Hi Everyone,

 

Could you please help me to add a row of blank at the end of my file?

 

Thank you,

 

HHC

1 ACCEPTED SOLUTION

Accepted Solutions
DanZ
Obsidian | Level 7
data want;
set have end=eof;
output;
if eof then do;
	call missing (of _all_);
	output;
end; run;

View solution in original post

3 REPLIES 3
ballardw
Super User

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?

DanZ
Obsidian | Level 7
data want;
set have end=eof;
output;
if eof then do;
	call missing (of _all_);
	output;
end; run;
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 2767 views
  • 2 likes
  • 4 in conversation