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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 4154 views
  • 0 likes
  • 3 in conversation