WASHINGTON AREA MIDRANGE

Mid Atlantic Midrange Seminar





















 

Mid Atlantic Midrange is proud to offer the next in our continuing education seminars, bringing you the best education and educators available in the iSeries world, and to do so at User Group Rates.

Web Seminar for CGI & RPG Programming
with Bob Cozzi

What You Will Learn

This seminar presents all the information necessary to perform web development using CGI, HTML and RPG IV. It presents what you need to get started developing interactive web applications using the AS/400 or iSeries HTTP web server, with HTML and RPG IV. Why spend months hunting down each piece of this huge puzzle? Come and learn everything you need to know, in one day.

Topics covered include:

  • The iSeries HTTP Web Server Overview
  • Introduction to the CGI process -- A CGI Architecture Overview
  • Introduction to HTML Including Basic HTML and TABLES
  • Introduction to HTML Forms
  • Connecting HTML Forms to RPG IV Programs.
  • HTTP Web Server for iSeries Concepts
  • Native AS/400 and iSeries CGI APIs
  • Reading Data from a Web Page
  • Sending Data (Reports) to the Web Browser
  • Building (Compiling) CGI RPG IV Programs
  • Debugging CGI RPG IV Programs
  • Using CGI TOOLS Procedures with CGI RPG IV
  • Using CGIDEVx Procedures with CGI RPG IV
  • OPTIONAL SESSION: Sample File Maintenance Application Built with CGI RPGIV, CGITOOLS and CGIDEV2
iSeries HTTP Web Server Overview

This session illustrates how the HTTP web server for iSeries is configured. It illustrates what a web server is and how it is implemented in OS/400. Both the so called classic HTTP server and the Apache 2.0 server are discussed.

The CGI Process - An Overview

This session illustrates the architecture of the Common Gateway Interface process. It illustrates how CGI program calls are performed in response to the Web Browser user pressing the Submit button on an HTML form.

Introduction to HTML

This session introduces the HTML language by presenting the language syntax and rules. An over view of HTML document structure is included with a sample HTML web page. By the end of the session the attendee will know the following:

  • HTML Document/page structure
  • HTML General Tag definition for pay layout
  • HTML Table definition and construction
  • The fundamentals of HTML from the basic <HTML> tag through the <TABLE> tag are presented.
Introduction to HTML Forms

This session introduces the fundamental component of HTML that allows end-user (browser users) to enter data into a webpage. HTML Forms consist of a set of HTML tags or "commands" that are to HTML what Display File DDS is to DDS. By the end of this session the attendee will posses the following skills:

  • A basic understanding of the HTML components that relate to designing and constructing HTML Forms
  • An in-depth understanding of the placement of Forms on the HTML page
  • An in-depth understanding of the use the input field tag, including:
    • Regular input fields
    • Hidden input fields
    • Read-only "input" fields
  • Create a list of options from a drop down list or "subfile-like" list of values.
Connecting HTML Forms to CGI Programs

This session illustrates the concept of CGI calls from an HTML form. The Form keywords "ACTION" and "METHOD" are the focus of this session along with the syntax required to specify an RPG IV program to be called. By the end of this session the attendee will be presented with the following concepts:

  • How to wire a CGI RPG IV program to an HTML web form
  • The methods used to pass data to the CGI RPG program
  • The syntax of a URL-encoded string
  • The entries in the HTTP Configuration file to allow a program to be evoked on the iSeries.
Native iSeries CGI APIs

This session reviews the native OS/400 APIs that are used for CGI programming. Each API is illustrated along with the parameter list. The purpose and use of the various APIs is presented along with a simple example of its use. By the end of this session the attendee will knowledge of the follow concepts:

  • The CGI APIs, including:
    • QtmhRdStout (read from standard input)
    • QtmhWrStout (write to standard output)
    • QtmhCvtDb (convert URL-encoded string to a data structure)
    • QzhbParse (CGI Parse)
    • QtmhGetEnv (get CGI environment variable value)
  • The CGI TOOLS wrapper procedures that simplify calling the native APIs
  • The CGIDEV2 helper procedures that make interactive HTML easier
Sending Data to the Web Browser

This session introduces how HTML and other data is packaged and sent to the web browser. Simply "static" text output is illustrated and then sending actual live data from a database is presented. By the end of this session the attendee will posses the following skills:

  • Store and retrieving HTML from standard OS/400 Source File Members
  • Store and retrieve HTML on the IFS (Integrated File System)
  • The ability to send HTML to the web browser
  • The ability to insert live data from a database into the web browser
  • Knowledge of the QtmhWrStout API and STDOUT() wrapper procedure
  • Knowledge of how to use the CGIDEV2 CGI API wrapper procedures
  • A clear understanding of HTTP Headers and reply codes
  • How to create server-side includes (SSI) to pre-fill lists of data
Server-Side Includes

This session illustrates how to use Server-side Includes (SSI) in everyday web page design. Using SSI's allows you to quickly and easily embed live data from your AS/400 or iSeries database into a web page. This includes the ability to do the following:

  • Create a list of values for the user to select from
  • Dynamically generate page content
  • Send a greeting to a returning visitor
  • Create one list based on the content of a user selection
  • Embed errors into a web page
Debugging CGI Programs

This session illustrates how to debug CGI programs. The user of the STRSRVJOB and STRDBG commands is feature along with the native ILE Debugger. Working with the HTTP server instance during debug is also featured. By the end of this session the attendee will be able to:

  • Use the STRSRVJOB command to start a service job
  • Safely end and restart the HTTP server instance
  • Start debug on a CGI program running in an HTTP server instance batch job
Using the Free CGI TOOLS and CGIDEV2 Service Programs

This session illustrates the features of these two power *SRVPGM (service programs) which are available for free download and fee licensing.

CGITOOLS - by Bob Cozzi

CGI TOOLS is a simple wrapper library of procedures that mask the complexities of the standard OS/400 CGI API set. They provide easy-to-user prototypes to allow CGI programs to, for example, call STDOUT() with one parameter of HTML text, rather than requiring the programmer to use QtmhWrStout with its parameter list. In addition STDOUT and the other wrapper procedures provide additional function. For example, one of the biggest issues with the standard CGI APIs is the in ability to convert standard CGI script text containing '\n' symbols. The STDOUT wrapper procedure does handle conversion automatically.

CGIDEV2 - by IBM Rochester

CGIDEV, currently in its second version, provide a high-level of function beyond simple wrapper procedures. CGIDEV2 provides additional function to update fields on HTML form, replace data on html forms, output lists of data using minimal HTML and CGI programming. The Update HTML Variable procedure alone is worth using this service program.

By the end of this presentation the attendee will have an understanding of the advantages and productivity gains provided by both of the CGITOOLS and CGIDEV2 service programs.

Who Should Attend

AS/400 and iSeries Programmers who are or will be involved in maintaining existing applications, porting old application to a GUI web interface, or those who are writing new applications for the web using HTML, RPG IV, and CGI should attend. Anyone who needs to understand HTML and the CGI process should also attend this seminar.

About the Presenter

Bob Cozzi's website: http://www.rpgiv.com is one of the most popular free RPG sites on the Internet. Bob Cozzi has been in the IT world since 1977. He was a Manager with Tellabs, Inc. the Lisle, IL based Telecommunications Company, for 4 years before leaving in late 1984 to start his own company. Prior to Tellab’s he worked for The Perlman-Rocque Co. A Lemont, IL based distributor for McDonalds Corp. From 1983 to 1995 Bob ran his own, highly successful company, Cozzi Research, publishing books, magazines, educational products, and producing seminars for the computer industry. Bob has been a member of COMMON, a 20,000 member, all volunteer organization of IT professionals since 1980. During his tenure with COMMON, he has held numerous positions with both management and tactical responsibilities. In the Fall of 1999, he was elected President of COMMON, and helped turn around the organization faltering financial situation. Today Bob keeps busy doing everything from contract programming in RPG IV with CGI, to teaching corporations' staffs RPG IV and ILE.

This course starts at 8:30 AM and ends at 5:00 PM and will be held on:

    March 17, 2003 at the Richmond Airport Holiday Inn in Richmond, VA
                                     - and -
    March 18, 2003 at the Holiday Inn in College Park on US1 and the Beltway
                                     - and -
    March 19, 2003 at the Holiday Inn, Ft. Washington, PA.
Registration will start at 8 A.M. Continental breakfast during registration as well as a working lunch are included in the course fee.

The course fee is $250 for non-user group members and $225 for user group members. A cancellation fee of $50 will be assessed for cancellations within 7 days of the event. This fee offering is a special arrangement between Washington Area Midrange Users Group and MidAtlantic Midrange. Members of other AS/400 User groups may also apply under the user group rate.

Name: _____________________________________________________

Company:___________________________________________________

Address:____________________________________________________

City: _________________________________ State: _____ Zip: ________

Office Phone: _______________________ Fax: ______________________

Email address: _________________________________________________

Please circle the date of the session you plan on attending.

Please mail completed form with check to:

    MidAtlantic Midrange - Conference Services
    12023 Blackberry Terrace
    North Potomac, MD 20878
For any further questions or reservations, contact K.B. Soni at 301-590-7121 or by email.


Latest Update - January 1, 2003