Friday, May 6, 2011

Explore your library


Suppose you are working with a library named my_lib and you want to check how many datasets are under your library and which are they, to get this information use the following code given below,

proc datasets library=my_lib;
run;

Suppose you have two datasets DATA1, DATA2 under your library my_lib. If you want to check the contents in DATA2 use the following codes,

proc contents data=my_lib.DATA1;
run;