Was this helpful?
INCLUDE Examples
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;
Last modified date: 01/30/2023