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

Hi,

I have stored process which prints  (by using proc print)multiple datasets in excel. I see there are two blank lines between the results.

Is that two blank lines between  results is default behavior?

Do we have any option to get only one blank line between results?

 

Here is the sample code. I've called in excel through a stored process. The result is having two blank lines between outputs.

proc print data=sashelp.class noobs;

run;

proc print data=sashelp.cars noobs;

 run;

proc print data=sashelp.class noobs;

run;

 

1 ACCEPTED SOLUTION

Accepted Solutions
pessi
Obsidian | Level 7

I got answer from SAS Technical support. Thanks for your response.

 

Yes, two blank lines between between the results generated by a stored process is expected.

 

Break each PROC PRINT in your stored process into separate stored processes so you can place the results in the desired location separately.

 

Or if you have SAS Add-in for Microsoft Office 8.0, you can insert individual pieces of stored process results into a workbook in the desired location. Here are a few SAS Add-in for Microsoft Office 8.0 video tutorials just in case you are interested in how to insert individual pieces of reports into a workbook: https://video.sas.com/category/videos/version-8

View solution in original post

4 REPLIES 4
Vince_SAS
Rhodochrosite | Level 12

Which ODS destination are you using?

 

ods Excel file= ... ;
  proc print ... ;
ods Excel close;

 

or

 

ods tagsets.ExcelXP file= ... ;
  proc print ... ;
ods tagsets.ExcelXP close;

 

Vince DelGobbo

SAS R&D

pessi
Obsidian | Level 7

I am not using anything. Just the above code.

I saved the code in a stored process and called the stored process by opening excel sheet.

Vince_SAS
Rhodochrosite | Level 12

Check the SAS log and post what you see.  SAS Enterprise Guide or the SAS Add-in for Microsoft Office might be issuing the statements on your behalf.

 

Vince DelGobbo

SAS R&D

pessi
Obsidian | Level 7

I got answer from SAS Technical support. Thanks for your response.

 

Yes, two blank lines between between the results generated by a stored process is expected.

 

Break each PROC PRINT in your stored process into separate stored processes so you can place the results in the desired location separately.

 

Or if you have SAS Add-in for Microsoft Office 8.0, you can insert individual pieces of stored process results into a workbook in the desired location. Here are a few SAS Add-in for Microsoft Office 8.0 video tutorials just in case you are interested in how to insert individual pieces of reports into a workbook: https://video.sas.com/category/videos/version-8

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1229 views
  • 0 likes
  • 2 in conversation