Hi Guys,
Just wanted to check is there is fastest way to list down all the sas datasets name from number of logs stored in log directory.
My task is to find datasets name from thousand of sas logs.
Any one has sas prog to do the same teask?
Regards
Japs
It seems you'd better write shell scripting codes to capture these file names.
Can anyone share the shell script?
You want to scan SAS logs and see what dataset names were used?
You can get a pretty good hit rated by just searching for the NOTE lines that SAS normally writes.
Start with this and perhaps fine tune it more as you see what messages it finds.
grep '^NOTE:.* data set ' *.log
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.