I'm tryin to use the following statement in one of my managed Cobols:
GET CONNECTION INTO :MyConnection
How should I declare the MyConnection field in my Cobol program.
I tried this:
01 MyConnection TYPE System.Data.SqlClient.SqlConnection.
But I get the following compiler error:
Error 1 COBES0100 : Incorrect SQL statement syntax near: xxxxx
The documentation show the following syntax:
GET CONNECTION INTO :myConnection TRANSACTION INTO :myTransaction
This format works for me.