Giovanni's logo
September 2003 updates
this means Version 2
blue line
This page highlights the updates in the CGIDEV2 September 2003 refresh.
For a comprehensive and uptodate list of all subprocedures available in the cgidev2/cgisrvpgm2 service program, please check out our readme page.

Impact to current applications
  1. Not impacted.
    All CGI programs bound to a duplicate of service program CGIDEV2/CGISRVPGM2 in their execution libraries (for instance, libraries set up with command cgidev2/cgisetup) are not impacted from the installation of the new CGIDEV2 library, unless you want to replace their CGISRVPGM2 service programs with the new service program in library CGIDEV2.
  2. Impacted.
    All CGI programs bound to service program CGIDEV2/CGISRVPGM2 are impacted from the installation of the new CGIDEV2 library. The following is required to have them back to operation:
    1. delete file CGIDEBUG from CGI execution libraries other than CGIDEV2, and substitute them with a duplicate from file CGIDEV2/CGIDEBUG
    2. re-create or re-bind all programs
Summary of changes
  1. Maintaining program state
    New subprocedures allow to maintain and retrieve program state information (data, variables, etc.) on user spaces. See here for more information.
  2. Other new subprocedures
    • randomString - Create a random string up to 1024 characters.
      Useful in generating temporary object names for files, members, stream files, etc.
    • encode, encodeBlanks
      Translate special HTML characters in their corresponding character entities, in order to avoid to be interpreted as HTML delimiters. Very useful when displaying database fields that may contain special HTML characters.
  3. Fixes
    • Cookie support
      • Corrected a bug in CrtCookie subprocedure that returned an incorrectly formatted date for the expires part of the cookie.
      • Corrected incorrectly prototyped parameters for the CEEDAYS API in the CrtCookie subprocedure. It was was causing intermittent failures with the message CEE2507, "insufficient data provided."
    • Debug support
      • WrtDebug subprocedure
        Corrected possible problem with unpassed *nopass variable, force
      • WrtJobDbg subprocedure
        Corrected possible problem with unpassed *nopass variable, force
    • ChkNbr subprocedure
      • Corrected possible problem with unpassed *nopass variable, maxdigits
      • Removed extra blanks in messages written by AddMsg when there were too many decimal points or too many minus signs.
    • UpdHTMLVar subprocedure
      • Corrected problems with unpassed *nopass variables, one of which caused corruption resulting in exception message "range of subscript value or character string error."
    • WrtNoSection subprocedure
      • Failed when called before a successful execution of GetHtml, GetHtmlIfs, or GetHtmlIfsMult. Added logic to perform necessary initialization.