5. Embedded SQL for Ada : Preprocessor Operation : Include File Processing : How to Include Variable Declarations
 
Share this page                  
How to Include Variable Declarations
If issued in a declaration section, the include statement can only be used to include variable declarations. The included file is preprocessed, and Ada output is generated into the parent file.
For example, a file called "employee.dcl" containing a record declaration generated by DCLGEN can be included into the source code as follows:
exec sql begin declare section;
       exec sql include 'employee.dcl';
    -- more declarations
exec sql end declare section;
The employee.dcl file is preprocessed into the parent output file.