DATA Step, Macro, Functions and more

Code to Show all Tables and Paths of Libnames

Reply
Regular Contributor
Posts: 222

Code to Show all Tables and Paths of Libnames

Hi experts;

 

Is there some way to create a table containning All libnames, paths, sizes, owners and tables ?

 

If possible, try to link this with the programs that they were created. 

 

Thanks is Advance

Super User
Posts: 24,012

Re: Code to Show all Tables and Paths of Libnames

Posted in reply to DartibaliRodrigo

SASHELP.VLIBNAM

 

 

Regular Contributor
Posts: 226

Re: Code to Show all Tables and Paths of Libnames

Posted in reply to DartibaliRodrigo
Impossible to link them to the programs creating the datasets, because those programs could be anywhere, you can't be sure that the program exists at all. Things are different, when working with sas DI.
Regular Contributor
Posts: 222

Re: Code to Show all Tables and Paths of Libnames

Posted in reply to error_prone

Ok, but i need to know owner and user that access them ?

Super User
Posts: 24,012

Re: Code to Show all Tables and Paths of Libnames

Posted in reply to DartibaliRodrigo

DartibaliRodrigo wrote:

Ok, but i need to know owner and user that access them ?


Libraries don't have owners, you may be able to figure out who created it, but often that can be an administrator rather than who uses or controls the data. Do you have an audit system set up on the data sets to track who accesses them? If not, then you can't track who's accessing what data set.

Regular Contributor
Posts: 222

Re: Code to Show all Tables and Paths of Libnames

Even with shell script ?

 

Maybe use some shell commands to track this.

 

Problem is:

We are migrating SAS 9.02 to 9.04 per waves.

 

Wave1 - 100 PGMS migrated

Wave2 - 200 PGMS migrated

...

...

 

We will put Wave1 to run on SAS 9.04 and need to track all datasets and paths. (Done)

 

I only need to track anyone who can validate these datasets, maybe one person per filesystem. (Not done)

 

Thanks

Super User
Posts: 24,012

Re: Code to Show all Tables and Paths of Libnames

Posted in reply to DartibaliRodrigo

You can find who created the data sets if you can run shell scripts on your system. That depends on your OS and you'd use OS scripts. Whether that maps to who can validate the data set is a business problem. 

 

 

Super User
Posts: 13,941

Re: Code to Show all Tables and Paths of Libnames

Posted in reply to DartibaliRodrigo

DartibaliRodrigo wrote:

Even with shell script ?

 

Maybe use some shell commands to track this.

 

Problem is:

We are migrating SAS 9.02 to 9.04 per waves.

 

Wave1 - 100 PGMS migrated

Wave2 - 200 PGMS migrated

...

...

 

We will put Wave1 to run on SAS 9.04 and need to track all datasets and paths. (Done)

 

I only need to track anyone who can validate these datasets, maybe one person per filesystem. (Not done)

 

Thanks


I really hope you mean you are migrating to SAS 9.4

Super User
Posts: 24,012

Re: Code to Show all Tables and Paths of Libnames

SAS numbers it that way Smiley Frustrated

Which is why I always double check when someone says SAS version 9.0

 

9.04.01M3P062415

Regular Contributor
Posts: 222

Re: Code to Show all Tables and Paths of Libnames

[ Edited ]

Mean the version of proc setinit; 

 

Current version: 9.04.01M4P110916 

 

But yes, SAS 9.4

Ask a Question
Discussion stats
  • 9 replies
  • 124 views
  • 1 like
  • 4 in conversation