Say I have a COBOL-module, X, which is called by another program, Y.
How do I identify the name of Y within X?
I could of course pass this in the linkage section to each sub-module, but I'd rather rely on a more programmatic way of dealing with this than developers coding some literals correctly.
But is there any known way of doing this effectively? Perhaps some obscure LE feature or specific control blocks to read?
All programs are running in batch on z/OS with Enterprise COBOL.