Let's assume the following situation.
On a web page on site A a cgi-script is started on server B which starts a cobol program named P1 passing parameters; program P1 calls a second program P2.
The program P1, which has been two parameters "field1" and "field2", use a CGI form to have available "field1":
01 Cgi-Form-P1 Is External-Form.
05 Field1 Pic X(10) Is Identified By "field1".
and the statement: Accept Cgi-Form-P1
Now, "field2" parameter should be used only by the P2 program.
To achieve this I declare a structure as follows:
01 Cgi-Form-P2 Is External-Form.
05 Field2 Pic X(10) Is Identified By "field2."
and the statement: Accept Cgi-Form-P2
I did some testing and it seems to work but I'm not sure.
I would like to know if this configuration is correct or if it has limitations, and it may cause problems.
Thank you all.
P.S. Sorry for my English...