IBM Books

Net.Data Reference Guide

INCLUDE_URL Statement

Purpose

The INCLUDE_URL statement reads and incorporates another file into the Net.Data macro where the statement is specified. The specified file can exist on a local or remote server.

Example 3 shows how to invoke a macro from a current macro without requiring the application user to select a Submit button.

Syntax

>>-%include_url---"--string--"---------------------------------><
 

Parameters

%include_url

The keyword that specifies to read and incorporate a file into the Net.Data macro from the local or a remote server.

string

Any sequence of alphabetic and numberic characters and punctuation except a newline character.

Context

Can be found in these contexts:

Restrictions

Can contain these elements:

INCLUDE_URL is not supported on the OS/390 or OS/400 platforms.

Examples

Example 1: This example includes a file on the local server.

%include_url "celdemo.htm"

Example 2: A gif file on another server is included here.

 %include_url "http://www.ibm.com/images/netdata.gif"

Example 3: You can include URLs pointing to other Net.Data macros. In this example, the macro file custqadd.mac is called and custno is sent as a variable.

%REPORT{
<P>Current hot pick as of @DTW_rTIME():
%include_url "http://www.ibm.com/cgi-bin/db2www/hotpic.mac/report?custno=$(custno)"


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