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=ABCDEFGHILMN123456789will 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. ...
Article ID: 223
Created: November 26, 2013
Last Updated: April 12, 2024
Author: Support KB Author
Online URL: https://support.veryant.com/phpkb/article.php?id=223