Before you can use any metadata functions in good old Base SAS you will need to connect to the metadata server.  See below for the necessary connection parameters..

options metaserver=localhost metaport=8561 metauser=“sasdemo” 
metapass=‘xxx’  metarepository=Foundation;