Dear Mr.Shantha,
There are 2 kind of custom macro functions, macro A and macro B.
You are using custom macro A.
I think External output commands can't use in macro A.
How about change to Macro B?
Do you using any other macro programs?
Or not I recommand to change macro B by set(1) Option parameter #913 bit 7 after clear(0) #902 bit 6.