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.
We used to do stuff like below, using EDIT to format date output:
TABLE FILE CAR
PRINT CAR
COMPUTE I/I8 = 20121230;
COMPUTE A/A7 = EDIT(I, '9999/99');
BY COUNTRY
END
Prior to WF77 this would return values in A as '2012/12'.
However, with WF77 these values are returned as '2012///'!
Is that intentional? If so, why is that?This message has been edited. Last edited by: Wep5622,
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Well, I am on 7.7.03 and get the same result as Wep - had to do this to get it right: COMPUTE I/I8 = 20121230; -*** this worked COMPUTE AP/A7 = EDIT(I, '9999')|'/'|EDIT(I,'$$$$99');
Vivian Perlmutter Aviter, Inc.
WebFOCUS Keysheet Rel. 8.0.2 (Almost) 1001 Ways to Work with Dates thru Rel. 8.0.2 Focus since 1982 WebFOCUS since the beginning Vivian@aviter.com
Vivian, that is how I already worked around the issue to fix the problem for our customer. I was just wondering whether what I saw was expected behaviour. Apparently it's not.
nd, our WF client is on 7703 Hotfix 6 as well. Our server is 7704 though, might that be the difference?
Another possibility, our WF client & server are on a 64-bit OS. Perhaps there's a bug that shows up there that doesn't show on 32-bit systems?This message has been edited. Last edited by: Wep5622,
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Well, even though the code worked for me, susannah is right - the code is doing two things at once - converting from integer to alpha and also embedding a slash - this should be done in two steps.This message has been edited. Last edited by: Francis Mariani,
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Oh dear, we use EDIT to do precisely this all the time! Apparently, an IBI consultant taught us to do conversions from integer to alpha just like this.
If that behaviour has changed, we're looking at a fairly serious backwards compatibility issue. I'll open a case.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Wep, your code is perfectly fine and should produce 2012/12. You are doing a numeric edit with mask and this has been supported forever. Opening a case with CSS should solve this problem for you, which may be some environmental issue- it may be windows specific.
Server 7704M Gen 773 (such a confusing gen-number!) fixed the issue.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :