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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 2960 views
  • 0 likes
  • 3 in conversation