How can I receive parameters in the first program working with isCOBOL Web Direct?
Estimated Reading Time: < 1 Minute
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. ...