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

I have two tables that have identical columns.  One table is for the current month only (TBL_CURRENT) while the second table is the archive of all previous month data (TBL_STATIC).  I have a very standard query that polls the current data and summarizes it.  I want to copy the query and subsequent reports using the static table as the source.  In other programs I've used, it's been easy to simply change the reference from one to the other.  Is there a way to do this in SAS EG?  

 

Thanks for any help you can provide!

Rita Yee

Project Engineer

FedEx Global Trade Services

___________________________________
The fact that I ask for help simply means I am inexperienced and under-educated. Please don't assume I am incompetent and uneducated.
1 ACCEPTED SOLUTION

Accepted Solutions
NataljaK
Obsidian | Level 7
1. In the Query Builder click right on the name of source file 2.Go to the Properties 3. In the Table Properties click to Change in the row Source

View solution in original post

2 REPLIES 2
VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

From what you have described you only need to change your table reference in the Proc SQL or datastep.  Maybe you will have to change your libname path if the archived data is not in the same location.

 

NataljaK
Obsidian | Level 7
1. In the Query Builder click right on the name of source file 2.Go to the Properties 3. In the Table Properties click to Change in the row Source

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 2 replies
  • 3359 views
  • 0 likes
  • 3 in conversation