Problem:
Is it possible to get runtime configuration file name from within a cobol program?
Resolution:
There's no library that does this automatically.
The easiest way is to declare an environment variable in the same config file that indicates the name of the file, such as:
CONFIG_FILE_NAME C:\\etc\\cblconfi
Then you can accept this variable form cobol with the statement:
ACCEPT dest-item FROM {CONFIGURATION}
{ENVIRONMENT }
"CONFIG_FILE_NAME"