Skip to main content

Get SQL query at runtime

  • May 24, 2012
  • 1 reply
  • 0 views

[Migrated content. Thread originally posted on 23 May 2012]

Hello,

I am running Microfocus COBOL program on LINUX in a batch mode. 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?

I use an Oracle database.

Thanks,

Sophie

1 reply

Stephen Hjerpe
  • Participating Frequently
  • 1100 replies
  • May 24, 2012

[Migrated content. Thread originally posted on 23 May 2012]

Hello,

I am running Microfocus COBOL program on LINUX in a batch mode. 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?

I use an Oracle database.

Thanks,

Sophie
Hi Sophie,

You posted your question on the Extend portion of the forum. The extend forum deals with ACUCOBOL questions and issues. Please post your question on the Net Express portion of the forum. I think you'll get a better response that way.

community.microfocus.com/.../3_COBOL__Net_Express_Server_Express_Visual_COBOL