I have a programmed that gets called from all different kinds of programs(ILERPG,RPGIII,CLLE,CLP). I need to know the name of calling program. Without passing the name to the called program.
I have a programmed that gets called from all different kinds of programs(ILERPG,RPGIII,CLLE,CLP). I need to know the name of calling program. Without passing the name to the called program.
There is no direct way to do that. You have to program it. I did it for my company. I attach the source of the clle program. Sorry if all the comments are in french.
You could use the Retrieve Job API's to get the information.