Here I'm executing the cobol-db2 program which is in parm parameter a12345p.
From PRODPARM I am supplying some data to the cobol-db2 progarm. So how can I capture the PRODPARM values in the cobol-db2 program. I need to have this variables in an internal cobol table.
Structure of A12345S:
LDC ID 4 byttes
LDC OPT CLSS 2
OPT ID 4
eX: LDC1 NA 0000
LDC2 NA 9999
LDC3 EX 0000
Joined: 11 Jun 2007 Posts: 80 Location: Columbus, Ohio
You would treat PRODPARM as any other input file in your program. Assuming (yuk) PRODPARM is the name of the file in your SELECT statement in FILE-CONTROL you would OPEN INPUT PRODPARM , READ PRODPARM, Move your variables, CLOSE PRODPARM ... Simplistic example, but you should get the idea.