| |||||||||||
|
1. Getting acquainted 2. Basic demos 3. Setup commands 4. CGI services available through CGIDEV2 service program 5. CGI debugging tips 6. Error number meanings 7. Performance tips 8. About persistent CGI 9. ZIP and UNZIP commands 10. CGIDEV2 updates 1. Getting acquaintedIf you are not yet familiar with CGI programming and with CGIDEV2 service program, please read the following:
2. Basic DemosOur demos are the best way to learn in practice how to develop RPG-ILE CCGI programs. After reading about CGIDEV2 service program functions, we recommend you visit them.3. Set up commandsYou should not develop your CGI's in one of the libraries (e.g. CGIDEV2) downloaded from our site. Installing a refresh would delete your developments.You should instead develop your CGI's in your (source and object) libraries. The problem of copying all the pieces needed for development and for execution of your CGI's is solved through some commands. We have commands to easy your setups:
4. CGI services available through CGIDEV2 service programFor a comprehensive walk through all the features of CGIDEV2 service program, you may go to Mel Rothman's Readme page. We recommend however you go through the following scheme, which provides you with a smooth learning path:
5. CGI debugging tipsThough debugging always comes last in a tutorial, it should rank first in a programmer's interest. This is why we dedicate a separate page to this topic.6. Error number valuesIn some circumstances some subprocedures of the service programs may end with non-zero return codes. Usually such error codes are also reported in the CGIDEBUG file. The guess would be about the meaning of such codes. To find out about them:
7. Performance tipsIn order to obtain the best performance from your CGI's, you may want to adopt the following tips:
8. About persistent CGISo far, without mentioning them, we have being talking about non persistent CGI. Traditionally, CGI programs are not persistent, that is, a CGI program, the next time it is called, does not remember (or, better, must not remember - as no guarantee exists that it is called by the same client as before) what values where left in its variables, and where files are positioned. This fact of course has a relevant impact in program design, because the values of the variables which are important for a program at the time it is invoked must be saved in the previous response HTML (usually as hidden fields) and sent with the program invocation request.Since V4R3, however, persistent CGI have been
implemented for OS/400 HTTP. Because of this second problem, the implementation of persistent CGI is not very frequent and left to cases where a COMMIT technique is mandatory. Our recommendation is not to use persistent CGI, unless strictly necessary. Persistent CGI
However, should you like to know more
on this subject,
this is your page.
Since March 25, 2009 service program CGIDEV2/CGISRVPGM2 has a zero signature. If you already have installed CGIDEV2 and you are going to install a new release of it, you should first check the release date of the existing CGIDEV2. You do that by running command CGIDEV2/RELEASED.
| |||||||||||