Hi,
In interview today one question was asked if
WS-VAR1 is ABCDE and
WS-VAR2 is 123
How will you get output as below-:
WS-VAR3 AB12CD3
My answer was
MOVE WS-VAR1(1:2) TO WS-VAR3
MOVE WS-VAR2(1:2) TO WS-VAR3
MOVE WS-VAR2(3:2) TO WS-VAR3
MOVE WS-VAR2(3:1) TO WS-VAR3
I know this is wrong and it was stupid of me to think that output will be AB12CD3 but I am looking for the correct answer, any suggestions are welcome!