COBOL

COBOL is a traditional and very common mainframe programming language that is utilized for a variety of business applications. COBOL programs can be online or batch programs. COBOL programs can run in any OS/390 address space, can execute under a variety of transaction managers such as CICS, and can be used for DB2 stored procedures and user-defined functions. COBOL is one of the most common programming languages, and there are many billions of lines of COBOL code in use today.

COBOL API

DB2 provides a COBOL API that allows you to embed static or dynamic SQL into a COBOL program. You can code SQL statements in the COBOL program sections, which are listed in Table 12-1.

Table 12-1. COBOL Program Sections for SQL Statements
SQL Statement ...

Get DB2® Universal Database™ for OS/390™ v7.1 Application Certification Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.