Specify connection arguments and query the metadata server for its status. LOCALHOST specifies the metadata server that is running on the same host as the SAS session.


proc metaoperate
     server="localhost" 
     port=8561
     userid="myuserid"
     password="mypassword"
     action=status;
run;