Accessing the internal-proc name

Posted by ojfoggin on 20-Jul-2009 07:31

We have a custom log window thing that records all appserver persistent proc calls.

This messages out the program (i.e. filename) of the source procedure that the publish message came from.  Is there any way of accessing the internal procedure name that the publish message came from also?

Thanks

Oliver

All Replies

Posted by rbf on 20-Jul-2009 07:36

PROGRAM-NAME(2) etc.

Posted by Admin on 20-Jul-2009 07:37

You may try the PROGRAM-NAME function. PROGRAM-NAME (2) returns the calling procedure

ENTRY(1, PROGRAM-NAME(2), " ":U) 

should return the internal procedure (when the source was an internal procedure).

Posted by Admin on 20-Jul-2009 07:38

You beat me.

Posted by ojfoggin on 20-Jul-2009 08:27

Thanks both!

I would have given you both "Correct Answer" but I'm only allowed to choose one.

Thanks again, works a charm!

This thread is closed