Hi,
There is a SOC7 abend while running the COBOL code pasted below.
01 TRS-TRANS-MAX-COUNT PIC S9(05) VALUE +10000
Existing code:
=============
PERFORM
WITH TEST AFTER
VARYING TRS-INDX FROM 1 BY 1
UNTIL TRS-FOUND
OR TRS-INDX = +5000
Changed code (SOC7 ABEND ENCOUNTERED):
======================================
PERFORM
WITH TEST AFTER
VARYING TRS-INDX FROM 1 BY 1
UNTIL TRS-FOUND
TRS-INDX = TRS-TRANS-MAX-COUNT
The problem identified after analysing the compile listing is higlighted.
Is it becasue the variable TRS-TRANS-MAX-COUNT has been defined as a PIC S9(05).
Should it be a COMP variable?
Could someone help me clear this doubt?
Thanks,
David