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! 

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

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