Any way to get the server routine name where I am?

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
User avatar
Dino
Posts: 472
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Any way to get the server routine name where I am?

Post by Dino »

Hi

I want to find a way to capture in which server routine I am.

I can capture the server module name using *component or #com_owner.name, but how to get the name of the server routine?

Thank you
René Houba
Posts: 220
Joined: Thu Nov 26, 2015 7:03 am

Re: Any way to get the server routine name where I am?

Post by René Houba »

Hi Dino,

I did some testing but cannot find something for this indeed.

What do you want to do with it. Use it for some internal logging or so?

Kind regards,
René
Catt
Posts: 8
Joined: Mon Jun 10, 2019 8:00 pm

Re: Any way to get the server routine name where I am?

Post by Catt »

I can't seem to find a way, either. Perhaps there can be an enhancement request made to have it stored like the component is.
User avatar
Dino
Posts: 472
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: Any way to get the server routine name where I am?

Post by Dino »

Yes, I have several server routines that perform additional security screening and will be great to be able to identify who is the caller. Without a variable for these is just double typing.

If we are talking enhancements for server routines.... cross reference will be great.... right now only way is to search for

server module.Server routine

In all source code in the repository. It will be great to be in a server routine and be able to see who is using it. Right now alternative... adding comments and trying to keep them up to date.

Be able to have some kind of ancestor for server routines will be also great

Just wishful thinking.
Post Reply