View previous topic :: View next topic |
Author |
Message |
rsantosh Beginner
Joined: 20 Dec 2014 Posts: 38 Topics: 9
|
Posted: Mon Mar 22, 2021 4:43 am Post subject: COBOL V6.1 Vs 6.2 NUMCHECK |
|
|
Hello,
Following statement running fine with COBOL v6.1 but failing with NUMCHECK with COBOL v6.2. Program we compiled with 6.1 is already in production. Below snippet is having the same data type as that of prod program but compiled with 6.2
Any insight in this behaviour change?
Code: |
01 WS-CHAR PIC X(40).
01 WS-NUM PIC 9(9).
MOVE 'A' TO WS-CHAR.
MOVE WS-CHAR TO WS-NUM --> Abending at this statement
|
Error
Code: |
The contents of data item WA-CHAR at the time of reference by the statement number x on the line y failed the NUMERIC class test .....
|
Regards,
Santosh |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
rsantosh Beginner
Joined: 20 Dec 2014 Posts: 38 Topics: 9
|
Posted: Mon Mar 22, 2021 11:57 pm Post subject: |
|
|
Hi Kolusu,
Thank you.
Regards,
Santosh |
|
Back to top |
|
|
|
|