Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
ALLBASE/SQL Advanced Application Programming Guide: HP 9000 Computer Systems > Chapter 8 COBOL Preprocessor Enhancements

Record Descriptions For Non-Bulk Queries

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » 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.

   .

   .

   EXEC SQL END DECLARE SECTION END-EXEC.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.