Moving High-Values from Comp-3 - COBOL Ver 6.4
Posted: Thu Jul 20, 2023 12:08 pm
Hi,
We are trying to execute the below code, but 6.4 version is throwing SOC7, whereas 2.2 version is running fine. I wanted to know is there any doc which explain this case...!
Prog code is as follows.
Working storage section.
01 WS-COMP3-VAR.
05 WS-COMP3-VAR1 PIC S9(7) COMP-3.
01 WS-NOR-VAR PIC 9(7).
PROCEDURE DIVISION.
MOVE HIGH-VALUES TO WS-COMP3-VAR. --> High values are moved to group variable
MOVE WS-COMP3-VAR1 TO WS-NOR-VAR --> COMP-3 variable is moving to normal variable causing SOC7.
Compilation is fine - no waning message or so. But the execution is causing SOC7 in 6.4 version only. in 2.2 version it is working fine.
Actually, we have a proj running to upgrade cobol ver from 2.2 to 6.4.
any details on this will be helpful.
We are trying to execute the below code, but 6.4 version is throwing SOC7, whereas 2.2 version is running fine. I wanted to know is there any doc which explain this case...!
Prog code is as follows.
Working storage section.
01 WS-COMP3-VAR.
05 WS-COMP3-VAR1 PIC S9(7) COMP-3.
01 WS-NOR-VAR PIC 9(7).
PROCEDURE DIVISION.
MOVE HIGH-VALUES TO WS-COMP3-VAR. --> High values are moved to group variable
MOVE WS-COMP3-VAR1 TO WS-NOR-VAR --> COMP-3 variable is moving to normal variable causing SOC7.
Compilation is fine - no waning message or so. But the execution is causing SOC7 in 6.4 version only. in 2.2 version it is working fine.
Actually, we have a proj running to upgrade cobol ver from 2.2 to 6.4.
any details on this will be helpful.