Help using Base SAS procedures

meta power macro warning message

Reply
New Contributor
Posts: 2

meta power macro warning message

Previously I have run the code and it worked just fine:

 

%metapower(test= 'M', model= 'random', raw_data= 'no', alpha= .05, tau2= .23078,
heterogeneity= 99, n1= 10.44, n2=9.52, k= 73, eff_type= 'd' , T= .4478, Dataset= NA, B= NA, v=
NA, x= NA, es= NA, p= NA, weight=NA );run;

 

but now when I try and run I get a warning messgae in my log:

 

 

1 %metapower(test= 'M', model= 'random', raw_data= 'no', alpha= .05, tau2= .23078,
-
180
WARNING: Apparent invocation of macro METAPOWER not resolved.
ERROR 180-322: Statement is not valid or it is used out of proper order.

2 heterogeneity= 99, n1= 10.44, n2=9.52, k= 73, eff_type= 'd' , T= .4478, Dataset= NA, B= NA,
2 ! v=
3 NA, x= NA, es= NA, p= NA, weight=NA );

3 ! run;

 

This is the first thing I ran as soon as I opened SAS. Does anyone know how to resolve the warning? I read that the error is associated with a missing semicolon prior to the macro, but I didn't run anything prior to this. Also any time I run metapower even if I specify a data set first I get an the same warning and error.

 

Thanks

 

Grand Advisor
Posts: 16,893

Re: meta power macro warning message

You have to compile or execute the macro code first before you can use it. 

If you haven't stored it in a catalog or compiled it at startup you won't be able to use it. 

 

AFAIK Metapower isn't a macro that's shipped with SAS. 

New Contributor
Posts: 2

Re: meta power macro warning message

Thanks so much, I found the macro code and stored it and everything is working now. Thanks for the help, I am clearly a newbie to SAS.

Valued Guide
Posts: 2,108

Re: meta power macro warning message

My guess is that you are using a macro autocall library and it has been changed so SAS can no longer find this macro.  Check with your SAS admin on possible setup/configuration changes.

Ask a Question
Discussion stats
  • 3 replies
  • 100 views
  • 1 like
  • 3 in conversation