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
March 26, 2009, 11:36 AM
GamP
Another such 'mystery' is that you can add an 'S' to any fieldname in your table request and the code will still run fine. TABLE FILE CAR PRINT CAR is the same as TABLE FILE CAR PRINT CARS ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
March 26, 2009, 11:46 AM
Francis Mariani
This one I didn't know!
I have never appreciated being able to do this:
TABLE FILE CAR
PRINT
F L A RE
END
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
March 26, 2009, 11:57 AM
Tony A
Who remembers LET?
LET TFC = TABLE FILE CAR PRINT F L A RE TFC END
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
March 26, 2009, 12:07 PM
Francis Mariani
I recently posted a smart@$$ answer to a LET question:
LET KINKS = CAR
LET STONES = FILE
LET ANIMALS = *
LET BEATLES = TABLE
LET HOLLIES = END
LET SHADOWS = PRINT
BEATLES STONES KINKS
SHADOWS ANIMALS
HOLLIES
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
March 26, 2009, 12:56 PM
Tony A
You're showing your age now Francis
T
March 26, 2009, 01:02 PM
Francis Mariani
I know, I shouldn't have mentioned The Shadows!
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
March 26, 2009, 04:37 PM
Prarie
You know there has been some good music since the 60's
March 26, 2009, 05:44 PM
Francis Mariani
Yes, I love TV On The Radio.
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
March 27, 2009, 01:08 AM
susannah
i'm now tempted to write a function for my edasprof, next to my LETs , called GOBBLEUP and another one called SPITITOUT wait that's more than 8 characters how about SPITITUP blech just to train the truly gullible .... today this consultant who just got the axe from IB actually asked me how to concatenate strings , and as if that weren't bad enough, What manual, and Where could he find one?
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
March 27, 2009, 09:22 AM
GinnyJakes
Susannah,
That's really sad. I used to work for IB and I can assure you I know where all the manuals are and I read them regularly.
quote:
TABLE FILE CAR PRINT F L A RE END
For those who don't know what Francis was doing here, he was using what is called the 'shortest unique truncation'. This is great for minimalists and those that don't like to type.
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
March 27, 2009, 01:12 PM
Glenda
Francis isn't showing his age by mentioning all those groups. He's showing good musical taste and the wisdom to know great music from mediocre music.
Glenda
In FOCUS Since 1990 Production 8.2 Windows
March 29, 2009, 11:40 PM
susannah
i second that!
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
March 30, 2009, 02:58 AM
Tony A
To get back to the original topic - the difference used to be in what SQL was generated - in my experience anyway!
Consider the two pieces of code -
SUM CNT.fieldname
WRITE CNT.fieldname
Now the more experienced among us would say that they should produce the same results, and I would agree. But the devil is in the detail and it is how the results are retrieved that differed.
The first one (certainly used to against DB2 on OS390) extracted all the records from the SQL source and then let FOCUS do the counting. Double handling of the data and costly in I/O terms. The SQL that was produced (circa 1994) was SELECT * FROM ..... and the count was achieved in FOCUS.
The second one (same as previous comment) would produce the SQL SELECT COUNT(*) FROM ..... - getting the SQL to do all the counting work, single handling of data etc. etc. etc.
So my answer would be that if you are reporting against an SQL source then trap the SQL and see if there is a difference. Chances are that since 1994 (cough) the back end would most certainly have improved the interpretation of FOCUS to SQL and maybe now there is no difference other than keystrokes, however we all know that to have truely backward compatibility legacy syntax must be retained.
How close I am to the view of IB only the Product Managers will be able to confirm (I know that at least two of them are from that time ).
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
March 30, 2009, 08:45 AM
j.gross
For that matter, ADD is (still) a valid synonym of WRITE:
TABLE FILE CAR ADD SEATS LENGTHS HEIGHTS BY COUNTRY END
(Where's my TTY?)
March 30, 2009, 09:43 AM
Francis Mariani
DB2 v9 on AIX, WF v7.6.5.
Both SUM and WRITE produce the same SQL:
SELECT T1.TIME_DIM_KEY, COUNT(T1.PERIOD_END_DT)
FROM TIMED T1
GROUP BY T1.TIME_DIM_KEY
ORDER BY T1.TIME_DIM_KEY
FOR FETCH ONLY;
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
March 30, 2009, 11:04 AM
Tony A
Francis,
I guessed that it would which is why I mentioned DB2 on OS390 circa 1994!
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
March 30, 2009, 11:12 AM
Francis Mariani
Yes, I've gathered that they've cleaned things up since 1994
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