Restrictions on using COBOL to program embedded SQL applications

The restrictions for API calls in COBOL applications.
Restrictions for API calls in COBOL applications include:
  • All integer variables used as value parameters in API calls must be declared with a USAGE COMP-5 clause.
In an object-oriented COBOL program:
  • SQL statements can only be used in the first program or class in a compile unit. This restriction exists because the precompiler inserts temporary working data into the first Working-Storage Section it sees.
  • Every class containing SQL statements must have a class-level Working-Storage Section, even if it is empty. This section is used to store data definitions generated by the precompiler.