e-RPG(V2) by Stone Bradley V.;

e-RPG(V2) by Stone Bradley V.;

Author:Stone, Bradley V.;
Language: eng
Format: epub
Publisher: MC Press
Published: 2002-08-15T00:00:00+00:00


QTMHCGI, MEET QZHBCGI

In the past, we were taught to use the IBM-supplied service program QTMHCGI to provide access to the APIs needed to write CGI applications on the AS/400. This has changed with the introduction of a new service program, QZHBCGI. It contains all of the old APIs, as well as the new ones discussed in this chapter.

Using this new service program is required if you want to use some of the new APIs that are available. (Otherwise, it is optional.) This isn’t as hard or as complicated as it might sound.

The first thing you should do is to replace the use of QTMHCGI with the use of QZHBCGI. The next time you compile programs, modules, or service programs that use the CGI APIs, simply replace the reference to QTMHCGI with QZHBCGI. This is done either on the CRTxxx command, your H-Specs where you specify the service program to use, or in your binding directory.

The QZHBCGI service program is located in library QHTTPSVR. You should copy this service program into your CGI library, just as you did with the QTMHCGI service program. The main reason to copy it is so that if you get all of your programs working, and then apply PTFs or updates, you will still be using a version of QZHBCGI that you know works. If you simply reference the QZHBCGI service program in library QHTTPSVR, you risk unpredictable results. The final decision, of course, is yours.

One by one you can start replacing references to QTMHCGI with QZHBCGI. This process should not have any ill affects on any of your programs, since all of the old APIs are there, with the same parameters and names. Because the use of ILE is involved here, we already see one benefit in that all of your programs will still work the same before and after this change, as well as during the transitional period.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.