Page 1 of 1

soc4 in perform statement.

PostPosted: Tue May 13, 2008 4:13 pm
by samfriday
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

Re: soc4 in perform statement.

PostPosted: Tue May 13, 2008 8:05 pm
by dick scherrer
Hello samfriday and welcome to the forums,

Please post the array definition.

Re: soc4 in perform statement.

PostPosted: Tue May 13, 2008 8:17 pm
by CICS Guy
dick scherrer wrote:Please post the array definition.
And WS-SUB and its relationship to the array......

Re: soc4 in perform statement.

PostPosted: Fri May 16, 2008 1:59 pm
by jayind
and

in the following statement,

"MOVE SPACES TO
PROC-OR-IND(WS-SUB)"

what is the definition of PROC-OR-IND?