[Migrated content. Thread originally posted on 25 May 2012]
Hello,I am running Microfocus NetExpress COBOL program on LINUX in a batch mode. I execute a SQL query fronm the COBOL program. What I would like is when my query ends up in error, I would like to log an error in a log file, with the query that has just run. Is there a runtime variable that exists where the last executed query is stored? It would make my life easier cause I would then be able to log exactly the correct query without having to "restring" it in my COBOL program.
I use an Oracle database.
Thanks,
Sophie

