IBM Books

Administration and Programming Guide for OS/400


Invoking Net.Data with a Macro (Macro Request)

This section shows you how to invoke Net.Data by specifying a macro.

The following syntax statements show how to invoke Net.Data.

Parameters:

server
Specifies the name and pathof the Web server. If the server is the local server, you can omit the server name and use a relative URL.

Net.Data_invocation_path
The path and filename of the Net.Data executable file. For example, /cgi-bin/db2www/.

filename
Specifies the name of the Net.Data macro file. Net.Data searches for and tries to match this file name with the path statements defined in the MACRO_PATH initialization path variable. See MACRO_PATH for more information.

block
Specifies the name of the HTML block in the referenced Net.Data macro.

method
Specifies the HTML method used with the form.

?name=val&...
Specifies one or more optional parameters passed to Net.Data.

You can then specify the URL directly in your browser, or you can use it in an HTML link or form as follows:

Parameters:

method
Specifies the HTML method used with the form.

URL
Specifies the URL used to run the Net.Data macro, the parameters of which are described above.

Examples

The following examples demonstrate the different methods of invoking Net.Data.

Example 1: Invoking Net.Data using an HTML link:

<A HREF="http://server/cgi-bin/db2www/myMacro.d2w/report">
.
.
.
</A>
 

Example 2: Invoking Net.Data using a form

<FORM METHOD=POST
 ACTION="http://server/cgi-bin/db2www/myMacro.d2w/report">
.
.
.
</FORM>
 

Example 3: Invoking Net.Data macros in the qsys.lib file system, using an HTML link:

<A HREF="http://server/cgi-bin/db2www/myMacro.mbr/report">
.
.
.
</A>
 

Example 4: Invoking Net.Data macros in the qsys.lib file system, using a form:

<FORM METHOD=POST
  ACTION="http://server/cgi-bin/db2www/
  qsys.lib/mylib.lib/myfile.file/myMacro.mbr/report">
.
.
.
</FORM>
 

The following sections describe HTML links and forms and more about how to invoke Net.Data with them:


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