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 COBOL Application Programming Guide: HP 9000 Computer Systems > Chapter 3 Embedding SQL Commands

Declaring Host Variables

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Variables used in SQL commands in the PROCEDURE DIVISION are known as host variables. All host variables used in a program must be declared in the FILE SECTION, the WORKING-STORAGE SECTION, or the LINKAGE SECTION of the DATA DIVISION. The declarations must appear between the two following SQL commands:



        EXEC SQL BEGIN DECLARE SECTION END-EXEC.

         .

         .  Host variables are declared here

         .  in COBOL data declarations.



        EXEC SQL END DECLARE SECTION END-EXEC.

For detailed information regarding host variables, see the chapter, "Host Variables."

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