When you say 'function', are you calling a script function or a step subroutine? I'm guessing it's the second. If so, all macros referenced in any values for parameter macros are expanded before any temporary macros are created, so this won't work if MY_MACRO1 and MY_MACRO2 don't already exist.
|