DQL snippit code reuse

Hi,

In Splunk SPL is their equivalent of DQL.

In Splunk I can save a piece of code (maybe just a line or several) as a “macro” and then reuse that in other code just by referencing it in other code.  Meaning if I change the macro in future it changes everywhere that it is used.

Can a similar thing be done in Dynatrace?

Thanks

@Keith_Harding  Dynatrace doesn’t have the exact concept of macros as in Splunk. But  Dynatrace has a RESTful API that allows you to automate many tasks.