I inherited a substantial application written in Micro Focus COBOL. I need to make changes to the way the connection strings are used. I sniffed through the code - and found 22 (!) with CONNECT USING statements. The application contains hundreds of programs, each compiled and deployed individually, with a handful of EXEC SQL statements - and as far as I can tell every one of them has no problem getting to the database. How are all the other programs connecting?
I inherited a substantial application written in Micro Focus COBOL. I need to make changes to the way the connection strings are used. I sniffed through the code - and found 22 (!) with CONNECT USING statements. The application contains hundreds of programs, each compiled and deployed individually, with a handful of EXEC SQL statements - and as far as I can tell every one of them has no problem getting to the database. How are all the other programs connecting?
What SQL preprocessor are you using to precompile your code, OpenESQL (ODBC) or Oracle ProCOBOL?
Once a connection is made then it stays in effect until it is disconnected. So if program1 does a CONNECT and then calls program2, program2 does not have to do a CONNECT.
There are also implicit connection methods available:
OpenESQL lusing SQL compiler directives, INIT, DB and PASS.
ProCOBOL using option AUTO_CONNECT
What SQL preprocessor are you using to precompile your code, OpenESQL (ODBC) or Oracle ProCOBOL?
Once a connection is made then it stays in effect until it is disconnected. So if program1 does a CONNECT and then calls program2, program2 does not have to do a CONNECT.
There are also implicit connection methods available:
OpenESQL lusing SQL compiler directives, INIT, DB and PASS.
ProCOBOL using option AUTO_CONNECT
in the ESODBCXA which executes as part of the startup of the application I spotted another CONNECT - that must be what establishes the connection
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.