8. OpenSQL Statements : INCLUDE : Examples: Include
 
Share this page                  
Examples: Include
1. Include the SQLCA in the program.
exec sql include sqlca;
2. Include global variables.
exec sql begin declare section;
  exec sql include 'global.var';
exec sql end declare section;
3. Include a file that contains header files that list variable declarations.
exec sql begin declare section;
  exec sql include 'mypath:global.var';
exec sql end declare section;