Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Y2K leap day bug

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved] Y2K leap day bug
 Login/Join
 
Gold member
posted
Hi All,

WebFOCUS 7.1 and 7.7 do not like the Y2K leap day if you use the MDY format. MDYY format is OK.

-* Y2KBUG - MDY format will not accept '022900'
TABLE FILE CAR
PRINT
 CAR
COMPUTE
 LEAP/MDY = '022900';
-* LEAP/MDY = '022800';
-* LEAP2/MDYY = '02292000';
END


WF 7.7 gives the message:

0 ERROR AT OR NEAR LINE      6  IN PROCEDURE Y2KBUG  FOCEXEC *
 (FOC177) INVALID DATE CONSTANT: 022900
 (FOC009) INCOMPLETE REQUEST STATEMENT
  BYPASSING TO END OF COMMAND


WF 7.1 gives the message:

0 ERROR AT OR NEAR LINE      6  IN PROCEDURE y2kbug  FOCEXEC *
 (FOC177) INVALID DATE CONSTANT: ;
 (FOC009) INCOMPLETE REQUEST STATEMENT
  BYPASSING TO END OF COMMAND


-James

This message has been edited. Last edited by: Kathleen Butler,


WF 7.1.6 moving to WF 7.7, Solaris 10, HTML,PDF,XL
 
Posts: 83 | Location: Dartmouth Hitchcock Medical Center | Registered: April 17, 2003Report This Post
Expert
posted Hide Post
Very Interesting...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Master
posted Hide Post
The following code..

APP PREPENDPATH IBISAMP
SET YRTHRESH = 50
-RUN
-? SET YRTHRESH &YRTHRSH
-? SET DEFCENT  &DEFCNT
-*
DEFINE FILE GGSALES
 LEAP_ALPHA1/A8MDYY = '02292000';
 LEAP_SMART1/MDYY = LEAP_ALPHA1;
 LEAP_ALPHA2/A6MDY = '022900';
 LEAP_SMART2/MDY = LEAP_ALPHA2;
END
-*
TABLE FILE GGSALES
"Year Threshhold = &YRTHRSH Default Century = &DEFCNT"
PRINT SEQ_NO
      LEAP_ALPHA1
      LEAP_SMART1
      LEAP_ALPHA2
      LEAP_SMART2
END 


Yields, in release 7.7.02..

PAGE 1 
 
Year Threshhold = 50 Default Century = 19 
 
Sequence# LEAP_ALPHA1 LEAP_SMART1 LEAP_ALPHA2 LEAP_SMART2 
1         02/29/2000  02/29/2000  02/29/00    02/29/00   




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
 
Posts: 822 | Registered: April 23, 2003Report This Post
Virtuoso
posted Hide Post
After Y2K, it's hard to believe that any business system or application still stores or references year values as two-digit numbers. And this post proves the point.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Master
posted Hide Post
quote:
it's hard to believe that any business system or application still stores or references year values as two-digit numbers

More than likely the OP is working with/accepting an interface from another system, that is passing six digit dates.

If true, and he has no control over remediating the other system, he needs to 'play with the hand he is dealt'.
 
Posts: 822 | Registered: April 23, 2003Report This Post
Expert
posted Hide Post
quote:
Year Threshhold = 50 Default Century = 19 ... 'play with the hand he is dealt'
AKA: Deal with it when it comes in / before it goes out.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Gold member
posted Hide Post
Hi,

David, thanks for the date windowing suggestion. That got me around the problem.

The file I'm working with was created long ago -dinosaurs roamed the earth. Obviously I need to revise a few date fields.

-James


WF 7.1.6 moving to WF 7.7, Solaris 10, HTML,PDF,XL
 
Posts: 83 | Location: Dartmouth Hitchcock Medical Center | Registered: April 17, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Y2K leap day bug

Copyright © 1996-2020 Information Builders