I have created the macro for gdg creation. how to make this work in both TSO and ISPF panels.What is the address space need to be specified.
Your question is badly confused. If you have written an edit macro, it will only
work in ISPF Edit. If you have written a Rexx script, it will work in both native TSO and ISPF (assuming that it invokes no ISPF services). I recommend that you "show your work", so that we can try to figure out what you're trying to say.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day