PROCEDURE DIVISION RETURNING data item %1 was not defined correctly.
30
Cause . . . . . : The data item in the RETURNING phrase of the PROCEDURE DIVISION header must be defined in the LINKAGE or WORKING-STORAGE sections and must not be subscripted or reference modified.
Recovery . . . : Remove the reference modification and subscripts. Make sure the data item is defined in a proper DATA DIVISION section.