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.
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
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
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
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
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
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.
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
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004