soc4 in perform statement.



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

soc4 in perform statement.

Postby samfriday » Tue May 13, 2008 4:13 pm

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
samfriday
 
Posts: 2
Joined: Tue May 13, 2008 3:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: soc4 in perform statement.

 

Re: soc4 in perform statement.

Postby dick scherrer » Tue May 13, 2008 8:05 pm

Hello samfriday and welcome to the forums,

Please post the array definition.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: soc4 in perform statement.

Postby CICS Guy » Tue May 13, 2008 8:17 pm

dick scherrer wrote:Please post the array definition.
And WS-SUB and its relationship to the array......
CICS Guy
 
Posts: 255
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: soc4 in perform statement.

Postby jayind » Fri May 16, 2008 1:59 pm

and

in the following statement,

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

what is the definition of PROC-OR-IND?
jayind
 
Posts: 62
Joined: Wed Apr 23, 2008 1:37 pm
Location: Chennai, India
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post