In my program, I am reading a work file and moving(MOVE BY NAME) into into a ADABAS file.
In the work file, there is a alphanumeric field A10 that I want to move into an array field(A10/1:15) of an ADABAS. Directly it won’t be possible to move from alphanumeric to array filed. To resolve this issue, I changed the variable name in the work file, so that it will skip that filed and later I am moving it explicitly into the first occurrence of any array.
02 X1 (A10)
01 ABC VIEW OF ABC
02 X (A10/1:15)
READ WORK 01 #WORK01
MOVE BY NAME #WORK01 to ABC
MOVE #WORK01.X1 TO ABC.X(1)
Here, I am moving into first occurrence of an array. This ADABAS records will move to log file with move by name in the object routine, and I think there is some problem while moving alphanumeric filed into first occurrence of ( A10/1:15) and the same array field is moving into the another array filed of (A10/1:15).
Can someone please help me to resolve this problem?