IBM Books

Net.Data Reference Guide

INCLUDE Statement

Purpose

The INCLUDE statement reads and incorporates a file into the Net.Data Net.Data macro where the statement is specified.

Net.Data searches the directories specified in the INCLUDE_PATH statement in the initialization file to find the include file.

You can use include files the same way you can in most high level languages. They can insert common headings and footings, define common sets of variables, or incorporate a common subroutine 'library' of FUNCTION block definitions into a Net.Data macro.

Syntax

>>-%include---"--string--"-------------------------------------><
 

Parameters

%include

The keyword that specifies to read and incorporate a file into the Net.Data macro.

string

Any sequence of alphabetic and numeric characters and punctuation, except a new line character.

Context

Can be found in these contexts:

Restrictions

Can contain these elements:

Examples

Example 1:

%HTML(start){
%INCLUDE "header.hti"
...
%}

Example 2:

%REPORT {
  %INCLUDE "report_header.txt"
  %ROW {
    %INCLUDE "row_include.txt"
  %}
  %INCLUDE "report_footer.txt"
%}


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]