`define macros usage

In reply to dave_59:

Hi Dave,

Thank you very much for the response .

Could you please provide any snippet how to achieve my requirement with your suggestion . I tried to reproduce at my end but getting into errors.

Sorry to trouble you.