METAOPERATE Procedure

Example 1: Submitting ACTION=STATUS

Features:

Connection arguments

ACTION=STATUS argument

OUT= argument

These examples request the status of the metadata server and show the arguments that can connect to the metadata server. They compare the default output to the output that can be obtained with the OUT= argument.
Specify connection arguments and query the metadata server for its status. This example specifies all connection arguments for the metadata server and show the output that is written to the SAS log.
proc metaoperate
     server="a123.us.company.com"
     port=8561
     userid="myuserid"
     password="mypassword"
     action=status;
run;

NOTE: Server a123.us.company.com SAS Version is 9.02.02B0P012308.
NOTE: Server a123.us.company.com SAS Long Version is 9.02.02B0P01232008.
NOTE: Server a123.us.company.com Operating System is XP_PRO.
NOTE: Server a123.us.company.com Operating System Family is WIN
NOTE: Server a123.us.company.com Operating System Version is Service Pack 2.
NOTE: Server a123.us.company.com Client is myuserid.
NOTE: Server a123.us.company.com Metadata Model is Version 11.02.
NOTE: Server a123.us.company.com is RUNNING on 11Aug08:15:54:15.

Specify connection arguments, query the metadata server for its status, and specify the OUT= argument. LOCALHOST specifies the metadata server that is running on the same host as the SAS session. The status output is written to a data set named WORK.STATOUT.
proc metaoperate
     server="localhost"
     port=8561
     userid="myuserid"
     password="mypassword"
     action=status
     out=statout;
run;

proc print data=work.statout;
run;
PROC PRINT of Data Set WORK.STATOUT