Reason:
In a MOVE BY NAME or POSITION, the number of occurrences in all array sub-structures must match identically between the sending and receiving groups.
Normally, this error is caught at compile time. However, when the sending group is a program parameter field accepted under the dynamic matching rule and the receiving field is a structure with fixed occurrence count, a mismatch could occur at run-time when fewer than the declared number of occurrences are passed to the called-program parameter. A similar error can occur with a receiving parameter field and a fixed-occurrence sending field.
A similar problem can occur when sending and receiving fields contain DEP ON identifier-name array structures, and MOVE BY NAME fails to transfer the identifier-name referenced.
Action:
You can take several courses of action to alleviate a problem due to dynamic occurrence mismatch:
MOVE ... BY POSITION
MOVE ... BY NAME
Assure that the structures use identical names for all occurrence counts in both sending and receiving structures.
Replace variably-occurring structures with fixed-occurring structures that do not require transfer of the occurrence identifiers.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|