HPlogo ALLBASE/SQL Advanced Application Programming Guide: HP 3000 MPE/iX Computer Systems > Chapter 8 COBOL Preprocessor Enhancements

Record Descriptions For Non-Bulk Queries

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Prior to this release, record descriptions were allowed only for host variables referenced in bulk queries. Host variables used in non-bulk queries can now be grouped together into logical records. This facilitates data movement, data initialization, and code readability.

Group level identifiers cannot be referenced in non-bulk queries. In the following example, PART-RECORD cannot be referenced in a non-bulk query, but PARTNUMBER can be referenced.

   EXEC SQL BEGIN DECLARE SECTION END-EXEC.

   01  PART-RECORD.

       05  PARTNUMBER                PIC X(16).

       05  PARTNAME                  PIC X(30).

       05  SALESPRICE                PIC S9(8)V99 COMP-3.

       05  SALESPRICEIND             SQLIND.



   [vellip]



   EXEC SQL END DECLARE SECTION END-EXEC.
Feedback to webmaster