6. QUEL and EQUEL Statements : Include Statement—Include an External File : Examples
 
Share this page                  
Examples
The following examples provide details.
Example 1:
The following example includes the contents of the file named "global.var" into an EQUEL program:
## include "global.var"
## /*
## ** the equel program can reference the data items
## ** declared in "global.var"
## */
Example 2:
The following example incorporates the contents of the file named "messages.src" into a message statement. In this example, "messages.src" contains the text "Retrieved employee ". At runtime, the program retrieves an employee and displays "Retrieved employee employee name".
## retrieve (msgvar = employee.empname)
## {
##   message include inline "messages.src" msgvar
## }