Many of the SAS supplied macros are dependent on the SAS products installed. If the macro is in a product not installed for you then that could be an issue. If you know which product the macro is supposed be associated with then you might run this code:
proc setinit;
run;
proc product_status;
run;
Setinit will tell which products are licensed and Product_status will tell which products were actually installed when you exam the Log. If the SAS product is in the Setinit results but not the Product_status then an update to your installation is in order. If not in Setinit then an expansion of the license is needed.
Sin %logtest is not installed in my fairly bare SAS installation I can't tell you which product to look for.