i am getting soc4. i am having one program which converts old file's format in new format. In this prog i am having one perform para which occurs 200 times or it's occurances are depending on one variable OLD-NO-OF-PROC. now what is happening i found by doing expediter. i founf that on 183th occurance out of 10 move statement 6 move were done well but as soon as it executes 7th move statement ws-sub becomes 16448. i dont know why it is happening.
PERFORM
VARYING WS-SUB FROM +1 BY +1
UNTIL WS-SUB GREATER OLD-NO-OF-PROC
OR WS-SUB EQUAL +200
then 6 statement and then
MOVE SPACES TO
PROC-OR-IND(WS-SUB)
just after this move statement. i am getting soc4. what could be the answer