‎2008 Apr 08 3:29 PM
Hi All,
Can anyone of u pls guide me in how to debug a macro, if possible with an example.
<REMOVED BY MODERATOR>
Regards,
John.
Edited by: Alvaro Tejada Galindo on Apr 8, 2008 5:11 PM
‎2008 Apr 08 3:32 PM
John,
A simple way would be to replace where the macro is used with the code of the macro.
Replace the &parms with the appropiate values and then run/compile it. You can then trace it, make the modifications to both the inline code and the macro until you get it working. then return the macro and remove the inline code.
‎2008 Apr 08 3:30 PM
You cannot debug a macro. <REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 8, 2008 10:59 AM
‎2008 Apr 08 3:30 PM
‎2008 Apr 08 3:32 PM
John,
A simple way would be to replace where the macro is used with the code of the macro.
Replace the &parms with the appropiate values and then run/compile it. You can then trace it, make the modifications to both the inline code and the macro until you get it working. then return the macro and remove the inline code.
‎2008 Apr 08 10:09 PM
Macro debugging is not possible.
One way is to replace the macro with a perform and then debugging it. The & parameters will become the using/changing parameters of this subroutine.
Unless you want to keep the execution of your code non-debuggable, I don't see any benefits to developing a macro in custom code.