[Migrated content. Thread originally posted on 22 March 2004]
You could be surprised by my question but I persist :Is there a way to know in which program I am ... ?
[ I can get the caller program ( C$calledby ) but not in which program I am ]
I have about 3000 programs using files , theses programs have the declaratives in an copy file 'DECLA.IO' which display errors ... and I would like to display the name of the program.
there is severals ways to know it but it's not great ( coding the name in a variable, calling a program using C$CALLEDBY with a linkage, using ...)
I need something like WHEN-COMPILED function .
Your Ideas will interest me.
THANK YOU:confused: