Lab 3 - DB2WWW Macro Programming

Previous Next

We are providing this information to you via the
Internet Connection for AS/400 Server
Home- Company Info- Sales- Support- Press Releases- Mail- Links- OS/400

Introduction to Lab 3 - DB2WWW Macro Programming

So far so good. But, again, another of the application's pages is just not working right. Take a look at the sales catalog you were left with! Just a few errors to fix. Bummer.

All we have to fix is the DB2WWW macro file, and test, test, test!

Where are things located for TEAMnn? (nn=your team number)

Description Value
The URL to your web application http://internut.rchland.ibm.com/cgi-bin/db2wwwnn/IMVH200.MBR/input
Web application is located on the AS/400 /ITSOICnn/*
You will be fixing links in this HTML file /ITSOICnn/welcome.htm
You will be fixing DB2WWW web macro statements in file ITSOICnn/HTML
member IMVH200
AS/400 userid and password ITSOICnn
ITSOICnn
The URL to a working example http://internut.rchland.ibm.com/cgi-bin/db2www/IMVH200.MBR/input

Step-by-Step lab instructions - Part 1 Fix IMVH200.MBR

  1. Start a Telnet (tn5250) session to your AS/400.
  2. Edit IMVH200 in library ITSOICnn file HTML.
  3. Exit and save the changes.
    Question 1: What source member do you need to compile on the AS/400?
    Answer to Question 1.

Step-by-Step lab instructions - Part 2 Fix HTML in WELCOME.HTM

  1. Back on the PC, edit WELCOME.HTM in \ITSOICnn
  2. FTP WELCOME.HTM back to the AS/400.
  3. Test, test and test the Sales link in your web application.

Step-by-Step lab instructions - Part 3 (HTTP configuration)

  1. On your AS/400: use the WRKHTTPCFG command to browse the AS/400 HTTP configuration file.
    Question 2: Look at the DB2WWW Map directive. What does /QSYS.LIB/QTCP.LIB/DB2WWW.PGM refer to?
    Answer to Question 2.
    Question 3: Look at the DB2WWW Map directive. What does /QSYS.LIB/ITSOICnn.LIB/HTML.FILE/* refer to?
    Answer to Question 3.

Questions and Answers Table
Question Answer
Question 1: What source member do you need to compile on the AS/400? None. That is what makes DB2WWW so much easier to use that a standard CGI interface. Return to Question 1.
Question 2: What does /QSYS.LIB/QTCP.LIB/DB2WWW.PGM refer to? This is the full path to DB2WWW.PGM, the CGI application that IBM has written for you to parse and interpret the macro file. Return to Question 2.
Question 3: What does /QSYS.LIB/ITSOICnn.LIB/HTML.FILE/* refer to? This is the full path to the DB2WWW macro file. This path is input to the DB2WWW.PGM with the member IMVH200.MBR/input appended on the end of the URL as it comes from the client. Return to Question 3.

Previous Next

Agenda

dbl010