How can I receive parameters in the first program working with isCOBOL Web Direct?

Question ID : 223
Created on 2013-11-26 at 10:02 AM
Author : Veryant Support [support@veryant.com]

Online URL : http://support.veryant.com/support/phpkb/question.php?ID=223



The parameters must be added to the end of the URL and they are received by the COBOL program as chaining parameters.
For instance, this URL:

   http://localhost:8180/wd2/zk/IsMainZK?PROGRAM=MYPROG&PARAM=ABCDEFGHILMN123456789
will pass the value "ABCDEFGHILMN123456789" to the COBOL program that contains this code:
   ...
       WORKING-STORAGE SECTION.
       01 hlink.
          05 p1 pic x(3).
          05 p2 pic x(9).
          05 p3 pic 9(4).
          05 p4 pic 9(5).
   ...
      PROCEDURE DIVISION chaining hlink.
   ...



Back to Original Question