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.
That is not exactly true. The syntax for using the contents of a file in a WHERE is officially WHERE field IN FILE (file). And the official syntax for doing the same with an IF statement is IF field EQ (file). And that works, also in the 7.7 releases. So this piece:
TABLE FILE CAR
PRINT COUNTRY CAR
WHERE (COUNTRY EQ (AASAVE01));
END
is a mixture of two syntaxes which apparently was allowed in previous releases. In 77 it should be either what you found, or
TABLE FILE CAR
PRINT COUNTRY CAR
IF COUNTRY EQ (AASAVE01)
END
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
We've just spent considerable effort migrating from 7.1 to 7.6.11, finding that we had to make a lot of changes because syntax that worked in 7.1 (but maybe wasn't to the spec in the manual) no longer worked in 7.6.11.
As a consequence we had to test every program.
And of course because WebFOCUS allows you to generate code in flight, it can't have a syntax checker.
So not only did we have to test each program, we had to test it for a variety of conditions that might affect generated code.
We don't want to have to repeat this exercise. I'll be referring your post to our Account Manager!
WebFocus 7.6.11 IBM iSeries
Posts: 14 | Location: Leeds, England | Registered: May 16, 2005
Syntax check when you press save? Maintain does that and I find it very very very very annoying. I always switch that 'feature' off. When you press Run, it will indeed do a syntax check. That's the part where you get the error messages .... I find that very helpful .... BTW: Did you know you can also press F5 to run a fex from within DevStudio?
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Yes, I agree, WebFOCUS does check syntax. But it checks it at run-time.
So, when you're doing an upgrade, since Information Builders do not guarantee compatibility with the previous version, you need to test every program, and, if you've used parameter substitution in your syntax, then test every program with a variety of cases.
For some languages, I'm sure you can just supply a set of source code files to a process that reads every file and validates the syntax. For example, type "html syntax checker" into google and see how many answers you get! Not so with WebFOCUS for the reasons described above.
Hence the request that IB should maintain compatibility of code in new releases whether or not the code conforms to the official standards.
WebFocus 7.6.11 IBM iSeries
Posts: 14 | Location: Leeds, England | Registered: May 16, 2005
Hence the request that IB should maintain compatibility of code in new releases whether or not the code conforms to the official standards.
Bob,
This would open up all sorts of problems. You're basically asking to disregard syntax rules because someone, some where, some time coded something that "worked" even though they knew it was undocumented syntax?
Don't get me wrong, I would love to have a "syntax checker" or "function completion" built in, and finding that the code someone wrote two versions ago no longer works because of "code tightening" is frustrating at best, not least because I would have to check everything else that the individual (or myself!) had manually coded (been there, done that, got the T shirt). However, over the (too many) years that I've been in IT I've gotten used to coding to the documented standard and accept that if I choose to abandon documented syntax then I (or someone ) will pay the price during an upgrade down the line. I guess that the best scenario would be to have the syntax so tight that you couldn't code outside the documented syntax, but when is that going to happen?
Another aspect is that, as the GUI becomes more and more sophisticated the generated code should always conform and be forward compatible.
Just my "tanners" worth.
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
We have always used the following to get the current time in HH:MM format.
-SET &NOW=HHMMSS('A5');
It has worked all the way back to FOCUS HP-UX ver 6 and maybe it has worked forever.
We are migrating from 7.1.3 to 7.6.11. Somewhere in between, the syntax was "tightened" because in 7.6.11 it gives an error. The documentation has always said that HHMMSS returns and A8 field, now it really does.
So we had to change the above to:
-SET &NOW=EDIT(HHMMSS('A8'),'99999');
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006