DB2 Server for VSE & VM: Application Programming
Appendix C. Using SQL in COBOL
Partial Table-of-Contents
A Sample COBOL Program
Rules for Using SQL in COBOL
Placing and Continuing SQL Statements
Delimiting SQL Statements
Identifying Rules for Case
Declaring Host Variables
Using Host Variables in SQL Statements
Using Long VARCHAR Host Variables (DB2 Server for VSE)
Using Preprocessor Options
Using the QUOTE Parameter
Using the COB2 Parameter (DB2 Server for VSE)
Using the COB2 Parameter (DB2 Server for VM)
Invoking COPYBOOKs (DB2 Server for VSE)
Using the COBRC Parameter
Using the TRUNC Compiler Option
Using the INCLUDE Statement
Using COBOL Variables in SQL: Data Conversion Considerations
Other Coding Considerations
Using DBCS Characters in COBOL
Handling SQL Errors
Using Dynamic SQL Statements in COBOL
Defining DB2 Server for VSE & VM Data Types for COBOL
Using Reentrant COBOL Programs
Using the DYNAM Compiler Option
Using Stored Procedures
Contents
[
Top of Page
|
Previous Page
|
Next Page
|
Table of Contents
|
Index
]