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: 7,782

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

Posted in reply to Ravikumarkummari

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: 19,805

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

Posted in reply to Ravikumarkummari

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