Skip to main content development
   toolset
 
  Easy400   |       iSeries home
Public-Source
 
Introduction
Tutorial
Examples
FAQ
Index
Download
 
 

 
1.7 - Compiling CGI programs


In order to have your ILE-COBOL CGI programs correctly created

  • be sure to use command cgicbldev2/setcgilib in order to populate your library (libraries)
  • if your CGI is a made of a single module, create it with command
    CRTBNDCBL PGM(mylib/mycgi1) SRCFILE(mylib/QCBLLESRC) DBGVIEW (*SOURCE) BNDDIR(mylib/CGICBLDEV2) ACTGRP(mycgi1) AUT(*USE)
  • if your CGI is a made of several modules,
    • create each module as follow:
      CRTCBLMOD MODULE(mylib/mycgi2a) SRCFILE(mylib/QCBLLESRC) DBGVIEW(*SOURCE) AUT(*USE)
      CRTCBLMOD MODULE(mylib/mycgi2b) SRCFILE(mylib/QCBLLESRC) DBGVIEW(*SOURCE) AUT(*USE)

      ... etc. ...
    • create the program as follow:
      CRTPGM PGM(mylib/mycgi2) MODULE(mylib/mycgi2a mylib/mycgi2b ...) BNDDIR(mylib/CGICBLDDEV2) ACTGRP(mycgi2) AUT(*USE)
Note. Using a named activation group provides great performance. The name of the activation group must be unique for a given program. For instance, the name of the activation group could be the same as the program name. However, two CGI programs with the same name but from different libraries, should run with two different activation groups.


    Contact