Monday, January 31, 2005

CGIDEV2

"CGIDEV2 is a collection of tools that makes it easier to write, test, debug and maintain RPG CGI programs. The tools fall into two main categories: the Service Program CGISRVPGM2, which contains the routines that do the hard work, and a set of full-functioning template programs that demonstrate the capabilities of those routines. The templates are designed to be modified to meet your programming needs."

The routines supplied in the service program include:

Tools to simplify interaction with the browser by “wrapping” the IBM-supplied CGI APIs. How much simpler? In most cases, getting input from the browser can be reduced to a single RPG statement.
Support for storing the HTML skeletons in the IFS or source physical files. This separates the HTML from the CGI program in much the same way DDS separates out the definition of a display file. Just as a display file can have multiple record formats, HTML skeletons can consist of a number of named sections. Even better, most HTML changes can be made without modifying or recompiling the CGI program.
Support for substituting variables within the HTML skeleton at runtime. This works in much the same way as moving values to the fields of a display file and has an “RPG feel” to it.
Debugging tools that allow you to track the operation of your CGI programs and to optionally add your own debugging information to the log.
Message-formatting tools that simplify reporting errors to the user.
The list goes on to include tools to parse CGI input; count page hits; perform data conversions; execute CL commands; handle CGI persistence; generate random numbers; and more. This is not to mention all of the additional tools available at the Easy400 Web site that are also built on the CGIDEV2 technology.

No comments:

Post a Comment