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 :
December 11, 2012, 09:58 AM
Francis Mariani
I get "2012/12" in v7.7.03.
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
December 11, 2012, 12:28 PM
Vivian
quote:
COMPUTE A/A7 = EDIT(I, '9999/99');
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
December 11, 2012, 03:15 PM
Danny-SRL
Same here on my 7.7.03. Try the following:
TABLE FILE CAR
PRINT CAR
COMPUTE I/I8 = 20121211;
COMPUTE B/A7 = EDIT(I, '9999/99');
COMPUTE A/A7 = EDIT(EDIT(I, '999999'),'9999/99');
BY COUNTRY
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
December 11, 2012, 03:34 PM
Waz
I tried in 7.1.6 (Unix), 7.6.6 (Unix), 7.6.11 (Unix) and 7.7.03 (Win) and all worked.
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
December 11, 2012, 04:50 PM
nd
We're on 7.7.03, HotFix 6 (might as well be specific).
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 :
December 12, 2012, 08:07 AM
Danny-SRL
WORKS at customer site 7.7.02
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
December 12, 2012, 01:36 PM
susannah
you're editing an Integer with a map that works on an Alpha if you just fix that /I8 concept, you should be fine.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
December 12, 2012, 02:11 PM
nd
quote:
nd, our WF client is on 7703 Hotfix 6 as well. Our server is 7704 though, might that be the difference?
It might be the server versions. It might also be a big load of frustrating.
If you haven't opened a support ticket, it might be worth it, to save someone else the bug down the line.
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
December 12, 2012, 03:28 PM
Waz
I do agree as well. If this is a loophole, then it may well disappear during code tightening in the future.
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
December 13, 2012, 04:08 AM
Wep5622
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 :
December 13, 2012, 05:09 PM
Edward Wolfgram
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.
IBI Development
December 14, 2012, 06:01 AM
Wep5622
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 :
December 14, 2012, 09:49 AM
Francis Mariani
Well, I guess some of us were being too strict about the code.
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