Hi,
I have noted that using CQM, this macro returns server name and using DQM returns FQN.
In my case, we have different database schema names based on type of environment (dev, production, test, etc).
My solution for that was creating an environment parameter (Local Config > advanced configuration) in Cognos Configuration called "ambiente", what means "environment" in my language. And then, I put the prefix of database of related environment, kind of DEV_, PRD_, etc.

So, in my Cognos data sources (Framework Manager), I have used this macro to get this parameter value of Cognos Configuration at run time.
#substitute('''' ; '' ; substitute('</crn:value'''; '' ; csv( grep('crn:value$' ; split('>' ; grep('ambiente' ; split('crn:parameter' ; getConfigurationEntry('advancedProperties' )))))))) + 'SUFIX_DATABASE_NAME'#

Using this way, you might change your server name or add more servers to your environment with no problems.
------------------------------
JEAM COELHO
Cognos Solution Architect
LinkedIn: https://www.linkedin.com/in/jeamcoelho/
------------------------------