MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

COBOL V6.1 Vs 6.2 NUMCHECK

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
rsantosh
Beginner


Joined: 20 Dec 2014
Posts: 38
Topics: 9

PostPosted: Mon Mar 22, 2021 4:43 am    Post subject: COBOL V6.1 Vs 6.2 NUMCHECK Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Mar 22, 2021 11:05 am    Post subject: Reply with quote

rsantosh,

The COBOL V6.2 August, 2020 PTF UI71111 (on RSU2009) and the COBOL V6.3 September, 2020 PTF UI71591 (on RSU2012) improved the functionality of NUMCHECK by adding a check to validate the contents of an alphanumeric data item used as a sender to a numeric data item in a MOVE statement. A subsequent PTF corrected an issue with the length of the data being checked in the alphanumeric sender.

Check this link for more information.

https://www.ibm.com/support/pages/numcheck-compiler-option-now-validates-contents-alphanumeric-data-item-used-sender-numeric-data-item-move-statement
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rsantosh
Beginner


Joined: 20 Dec 2014
Posts: 38
Topics: 9

PostPosted: Mon Mar 22, 2021 11:57 pm    Post subject: Reply with quote

Hi Kolusu,

Thank you.

Regards,
Santosh
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group