Great! Glad you got it working and very nice of you to supplement with the SQL server portion!
Hello everyone, i replicated similar solution and i was getting below error when i am inserting macro in schema
"GEN-ERR-0008 A possible recursive definition involving the parameter map 'Dynamic Library' based on query items that were detected."
Any idea what i am missing
SQL query i used is :
SELECT DISTINCT
'CURRENT_ENVIRONMENT' as CURRENT_ENVIRONMENT,
CASE CREATOR
WHEN 'PROD' THEN 'PRODSCHEMA'
WHEN 'TEST' THEN 'TESTSCHEMA'
END AS LIBRARY_NAME
FROM SYSIBM.SYSTABLES
WHERE CREATOR IN ('PROD','TEST')
I TRIED WITH/WITHOUT DISTINCT ,but error was same