Hi all,

Here I’m…😀 this post is about Program-Namme function in Progress ABL.
It returns the name of the calling program.

Let’s pratice…

This is the code of procedure MyProc1.p.
run MyProc2.p.

The code of procedure MyProc2.p.
message PROGRAM-NAME(1) view-as alert-box. /* MyProc2.p */
message PROGRAM-NAME(2) view-as alert-box. /* MyProc1.p */

Very useful for exceptions in triggers.
It returns till the name of internal procedures.😀