CA GEN FUNCTION DAYS HAS CHANGED ITS BEHAVIOR IN 8.6 VERSION WHEN RECEIVING NULL DATES
Article ID: 112235
GenGen - Workstation ToolsetGen - Host EncyclopediaGen - Run Time Distributed
Cust wanted to confirm if CA GEN function DAYS has changed its behavior in CA GEN 8.6 when receiving NULL dates.
Cust attached the COBOL code that was getting error (specifically the TIRF- DDUR function in COBOL).
When cust passed valid dates as parameter for those functions results were identical running code under CA GEN 8.0 runtimes or CA GEN 8.6 runtimes.
The problem happened when the date informed to the DAYS function was a NULL date.
The developer had changed his code in order to inspect the null date before doing any calculation--as this situation was happening in production environment.
The application is working properly now as the code is calculating only when val- id dates are passed--as it should be.
Although the doubt in that function results difference remains other applica- tions there do not calculate using null dates--this case was an exception. So developer corrected program and now it is coded as it should be.