I want to start a DB2-cobol program from a Rexx and send in 3 parms to that program
Like
queue "RUN PROGRAM(SQL2TAB)" ,
" PLAN(SQL2TAB)" ,
" PARMS('"parm1 parm2 parm3"')"
queue "END"
address TSO "DSN SYSTEM(DB2A)"
and I want to fetch the parms in the program like this (much easier to parse)
linkage section.
01 l01-parm-len pic s9(04) binary.
01 l01-parm1.
05 l01-parm1len pic s9(04) binary.
05 l01-parm1value.
10 l01-parm1char pic x(01) occurs 1 to 008
depending on
l01-parm1len.
01 l01-parm2.
05 l01-parm2len pic s9(04) binary.
05 l01-parm2value.
10 l01-parm2char pic x(01) occurs 1 to 080
depending on
l01-parm2len.
01 l01-parm3.
05 l01-parm3len pic s9(04) binary.
05 l01-parm3value.
10 l01-parm3char pic x(01) occurs 1 to 006
depending on
l01-parm3len.
procedure division
using l01-parm1
l01-parm2
l01-parm3.
Whatever I do it ends up in 1 string with a length infront
Someone having experience of this?
//Lasse