Help using Base SAS procedures

how to export two datasets into single excel work sheet without merging two

Reply
Frequent Contributor
Posts: 111

how to export two datasets into single excel work sheet without merging two

Good day all,

I have two datasets. with different variable names.

Now i want to export these two datasets into excel within single work sheet.

without using set statement and merge and not combining the datasets.

is there any method to using ods to export these datasets into excel within single work sheet.

i.e. after completion of first dataset output then second dataset output is came.

Super User
Posts: 6,982

Re: how to export two datasets into single excel work sheet without merging two

Use ODS TAGSETS.EXCELXP and proc print.

Caution: Name the file with a .xml extension, or otherwise Excel will complain when opening it.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super User
Posts: 17,963

Re: how to export two datasets into single excel work sheet without merging two

Ask a Question
Discussion stats
  • 2 replies
  • 247 views
  • 0 likes
  • 3 in conversation