Database access PrimerCOBOL programs can contain embedded SQLYour choices:1. Database vendor pre-compiler such as OraclePro*COBOLa) COBSQL provides single compile-step integrated with the IDE2. Micro Focus OpenESQLa) Connect to any ODBC, JDBC, ADO.NET enabled data sourceprocedure division.exec sqlconnect to Northwindend-execif sqlcode not = 0display "Error during CONNECT : " SQLCODEdisplay mfsqlmessagetextgobackend-if
Database access under Managed Code• Oracle does not support managed code using Pro*COBOL• Use OpenESQL for JDBC and ADO.NET• Use Pro*COBOL directives MODE=ANSI and FIPS to determinenon-standard ANSI syntax• Some Oracle extensions supported by OpenESQL otherextensions will need to be reworked• No PL/SQL support
Java App Servers• To do anything “Thin” will involve an app server• All major Java App Servers supported in Visual COBOL 2.2– Tomcat– JBOSS– Webshere– WebLogic• Web Services and JSPs• Java coding required• See community.microfocus.com for walkthrus
Summary• Managed code is a fantastic way to modernize yourapplication– Get more done using Java and .NET frameworks– Create new user interfaces and services baseddeployments• Be prepared– New skills – OO, Java, .NET, frameworks– Check for unsupported options such as APIs and databasepre-compilers• Speak to Micro Focus before you start or at least, let us knowonce you’ve deployed!
@microfocus or hashtag #devcon2013Follow us on LinkedIn or join the groupConnect with your peers on the Community