Overview
The Pervasive PSQL relational interface includes support for COBOL OCCURS constructs, partial REDEFINES, and variable record layouts.
A partial REDEFINE redefines a portion of the data within a record (such as a 05 level within a 01 level). A variable record layout is also referred to as a REDEFINES because the entire record is being redefined. To avoid confusion with terminology, this section refers to partial REDEFINES and to variable record layouts.
No changes are required to your COBOL application to take advantage of the SQL access.
You enable SQL access by describing the application’s understanding of data to the Pervasive PSQL relational interface. In developer’s terms, you define the metadata to the relational interface.
Note that this section applies only to COBOL applications that include OCCURS, partial REDEFINES, or variable record layouts.
Restrictions
The following restrictions currently apply to providing SQL access for COBOL applications.
SQL Statements
The following table lists the use of SQL statements with data tables created from OCCURS, partial REDEFINES, or variable record layouts.
See Grammar Statements in SQL Engine Reference.