BookmarkSubscribeRSS Feed
_22
Fluorite | Level 6 _22
Fluorite | Level 6

I have a template file having 2 sheets. Also, I have a output file having 3 sheets. I want to copy or move these sheets from each files into a new single file having 5 sheets. 

 

7 REPLIES 7
Tom
Super User Tom
Super User

How is this a SAS question?

_22
Fluorite | Level 6 _22
Fluorite | Level 6

I mean by using SAS ODS or any other way where I can move these sheets into my final excel using SAS

Reeza
Super User

Redesign your process such that you take your template, make a copy of it (FCOPY() function) and then export your three sheets straight to that copy instead. 

 


@_22 wrote:

I have a template file having 2 sheets. Also, I have a output file having 3 sheets. I want to copy or move these sheets from each files into a new single file having 5 sheets. 

 


 

 

_22
Fluorite | Level 6 _22
Fluorite | Level 6

I did the same but the problem is --

 

I need to output proc compare result which i was output using ods excel in my second file. since this result is not in dataset format , i am stuck in the process of getting these results into new excel file

Reeza
Super User
Unfortunately I don't recommend using PROC COMPARE either, I usually generate those reports using my own macros. One is on GitHub that does the variable comparisons and I export that straight to Excel.
_22
Fluorite | Level 6 _22
Fluorite | Level 6

 you please share the link of the macro here/

Reeza
Super User

What type of output do you need? This particular one just checks variables in each data set. 

 

https://gist.github.com/statgeek/e0b98c4627aa31a567e5

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 7 replies
  • 2447 views
  • 1 like
  • 3 in conversation