Is there a system variable that can be used to determine the previous program that called a subprogram? I am looking for a way to determine the calling program or subprogram that just called the subprogram that I am working on. Over 70 modules are calling the subprogram. In other words, if the calling program is DFPOACEA and the subprogram is DFNRO096, is there a system variable that I can use to make decisions on that gives me the calling program name of DFPOACEA?
Kirk_Stedem
(Kirk Stedem)
1
system
(system)
2
No, there is no system variable, but check out
USR0600N and USR4214N in lib SYSEXT, these
subprograms provide “call stack” information.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| The Object in the Source Work Area | 6 | 12172 | April 2, 2021 | |
| find the name of the program name | 4 | 5688 | April 2, 2021 | |
| Can we reterive the module name in the called module of calling moduling | 4 | 932 | April 2, 2021 | |
| NATURAL Is there a way to know what program called a sub-program without passing *PROGRAM when the subprogram is called? | 3 | 415 | October 16, 2024 | |
| CALLNAT | 7 | 1602 | April 2, 2021 |