BookmarkSubscribeRSS Feed
BaVe
Fluorite | Level 6

Hi all,

 

Currently I have a SAS EG Project with multiple proces flows and within those quite some Query Builders and Programs.

Since it has grown and developed over time, it's time for some clean up and get rid of no longer used var's. However, in the first proces flow I can't see if a var is used in a composing another var later on and therefore I don't know if I should delete te var or not. The search option in SAS doesn't provide me with all info.

 

So, is a method available that searches multiple logs, query builders, programs for a var and displays how and where it's used?

 

Thanks in advance!

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

A prime example of where documentation is so important.  If the code was all planned, documented, before being written you wouldn't even need the code - hence why documentation is so much more important than code.

 

Anyways, there is a procedure called:

http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a003199745.htm

Proc scaproc.

 

This runs around your code and analayses inputs, outputs and such like.  I don't think that goes down to the actual variable level though, and as far as I know there is not such a thing.  You would need to work backwards across the process documenting each part as you go.

SASKiwi
PROC Star

This type of question comes up quite frequently. Yes there are tools for parsing SAS logs or for searching projects and code. As for definitively figuring out the provenance or history of a variable and whether it is still used or not, that requires a level of intelligence only human brain power can do with the current state of technology. Maybe in the brave new work of Artificial Intelligence that might change! 

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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