I'm trying to pass an array DS as a parameter but when compiling I get an "RNF5343 Array has too many omitted indexes" error.
The Array Data Structure is defined the same in both programs as
D ResponseData DS Dim(100) Qualified
D Field1 3 0
D Field2 26
...
D Field45 26
Simple definitions of called program "PGM1"
D PGM1 PI
D ReceiveVar LikeDS(ResponseData) Dim(100)
D ReceiveCount 10U 0 Const
D PGM1 PR
D ReceiveVar LikeDS(ResponseData) Dim(100)
D ReceiveCount 10U 0 Const
...
Multiple row fetch using embedded SQL into RecieveVar
...
Simple definition of calling program "PGM2"
D PGM2 PR ExtPgm('PGM1')
D ReceiveVar LikeDS(ResponseData) Dim(100)
D ReceiveCount 10U 0 Const
PGM1(RecieveVar: RecieveCount);
When compiling the calling program "PGM2" the RNF5343 Array has too many omitted indexes occurs. I don't want to pass only one instance of the array but the entire thing.
What should I do to be able to pass an array data structure as a parameter between two programs?