|
|
| |
 Net.Data for i5/OS
 | | |
|
|
Here you will find (hopefully) answers to your "how-to" questions by providing examples that show techniques for untangling some of the "mysteries" of writing macros.
The following examples assume that: (1) latest Net.Data code is loaded on your system; (2) Net.Data has been configured on your system; and (3) there are HTTP configuration directives to map "/cgi-bin/db2www/*" to the DB2WWW program in your CGI library.
- Producing Static HTML
-
Examples "/> on producing static HTML using Net.Data. Illustrates what HTML section gets processed.
-
Defining, Referencing, and Setting Variables
-
Examples "/> on the usage of Net.Data variables. Includes sample code that defines variables for which the values include calls to Net.Data built-in functions.
-
Simulating Server-side Includes
- The
sample code "/> shows how you can save time and effort updating Web pages by using common HTML files.
-
Conditional Processing
-
Examples "/> that illustrate the usage of conditional processing to generate Web pages using the IF and WHILE Net.Data constructs.
-
Setting Cookies
- Ever wonder how cookies can be set in a Net.Data Web macro? Well, the Web macros to do this can be found
here "/> .
-
Setting INI-File Path Variables
-
Examples "/> that show you how to simplify URL paths and paths within your macro that reference programs or include files by setting the MACRO_PATH, EXEC_PATH, and INCLUDE_PATH variables in the Net.Data configuration (INI) file.
- Using Default Report Processing
-
Examples "/> that show you how to define a function using the DTW_SQL language environment, and how data generated by a SQL SELECT statement gets displayed back to the browser using the default report block processing feature of Net.Data. (
NOTE:
The concepts illustrated in the examples are applicable to all language environments. )
-
Using User-Defined Report Processing
- Maybe you want to produce your own report? The
sample code "/> will show you how to do this, and more. (
NOTE:
The concepts illustrated in the examples are applicable to all language environments. )
-
Calling a SQL Function From Within A Row Block of Another Function
-
An Example "/> that will show you how to call another SQL function from within the %ROW block of another SQL function. (
NOTE:
The concepts illustrated in the examples are applicable to all language environments. )
-
Enabling System Naming Mode
- Do you want to use the library list when searching for database files? Here's
how "/> .
-
Using the START_ROW_NUM Report Variable
-
Examples "/> that show you how you can subset a large table and increase performance. (
NOTE:
The concepts illustrated in the examples are applicable to all language environments. )
- Issuing CL Commands (and Calling Programs)
-
Examples "/> that illustrate how to issue CL commands and call programs, including examples that show how to pass parameters to a program.
-
Retrieving and Updating Net.Data Variables
-
Examples "/> that show how a program can manipulate Net.Data variables. Examples include programs written in the C, RPG, and CL programming languages.
- Running REXX Programs
-
Examples "/> that show how to call a Rexx program, including how to code in-line REXX programs and how to pass parameters to a REXX program.
-
Retrieving and Updating Net.Data Variables
-
Examples "/> that show how Rexx programs can manipulate Net.Data variables.
|
| |
|
|
|