我想传递一个数组DS作为参数,但编译时,我得到一个“RNF5343数组有太多省略索引”错误。如何传递数组数据结构作为参数?
的阵列作为
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
...
调用程序 “PGM2”
D PGM2 PR ExtPgm('PGM1')
D ReceiveVar LikeDS(ResponseData) Dim(100)
D ReceiveCount 10U 0 Const
PGM1(RecieveVar: RecieveCount);
的简单定义名为 “PGM1” 的
D ResponseData DS Dim(100) Qualified
D Field1 3 0
D Field2 26
...
D Field45 26
简单的定义来定义相同的两个程序
编译调用程序“PGM2”时,RNF5343阵列中省略了太多索引发生。我不想仅传递数组的一个实例,而是传递整个事件。
我应该怎么做才能在两个程序之间传递数组数据结构作为参数?