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.
I'm working with World and I'm trying to find the best way to convert the date field. On our system the date is in P7 format. Here is an example date. 105135 1 = Y2K (fix) 1=2000 05 = Year 135 = day of year
As Karen intimates, the date you have is almost a julian date so correcting the year portion so that it is a full julian date will provide your answer.
You could also bypass the first two steps in Karen's excellent solution by adding 1900000 to your input date, within the GREGDT step - DATE_I8YYMD/I8YYMD = GREGDT((1900000 + DATE_INPUT), 'I8YYMD');
But as Karen has said, it all depends upon how the 1900 dates are represented.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Brilliant solution with the adding 1900000, that didn't cross my mind. I don't have any pre-y2k data but it will work for 2100 and above. I'm guessing pre-y2k would just be without the hundred thounsand, 105135 = 2005/135day and 5135 would be 1905/135day.
JDE stores dates in Julian format. If you don't want to have to do things manually, there is a JDE World Adapter that can automatically generate the synonyms for you. It would take care of julian to gregorian date conversion, decimal conversion, UDC lookups, and security integration for all your JDE World tables.
Regards, Richard
Posts: 8 | Location: Corporate | Registered: October 07, 2006