Focal Point Banner


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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
[solved] Semi-colon
 Login/Join
 
Silver Member
posted
Hello,

Does anyone know what is the purpose of having semi-colon at the end of WHERE/DEFINE statement?
Even the code works without having the semi colon.
Please let me know.

WHERE COUNTRY EQ 'USA' ;

This message has been edited. Last edited by: Venkat-,


product release:8203
o/s: windows 10
expected o/p formats: HTML,EXCEL,PDF
 
Posts: 34 | Location: Kearney, Nebraska | Registered: December 14, 2011Report This Post
Virtuoso
posted Hide Post
They used to be required way back when...
Now they don't seem to matter. Not sure of the exact reason that changed.
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Guru
posted Hide Post
There are random times when leaving out the semi-colon causes failure. Its best to leave it in.


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
Virtuoso
posted Hide Post
In DEFINE, it's required between one definition and the next -- without it, the interpreter will think it's all one definition, usually resulting in an "undefined variable" message. The interpreter does not require it after the last definition -- end of definition is implied by the "END card", but I doubt that's documented.

BTW, same goes for ENDSTYLE -- if absent, it's implied by END.

In WHERE clauses of a TABLE request it's an optional part of the syntax (optional, whether de jure or de facto). If present, the interpreter know it's reached the end of the expression. If absent, the interpreter can generally deduce from the following word whether or not it's is a continuation -- but why leave it to chance. Even though the interpreter does not require it (and does a good job of inferring end or continuation of the expression when it reads the next word), supplying the closing s/c is a good habit.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Silver Member
posted Hide Post
Thanks all for the reply!


product release:8203
o/s: windows 10
expected o/p formats: HTML,EXCEL,PDF
 
Posts: 34 | Location: Kearney, Nebraska | Registered: December 14, 2011Report This Post
<JG>
posted
quote:
;
Is an optional semicolon that can be used to enhance the readability of the request. It does not affect the report


Is the official line.

However with compound statements and with Statements that include a function

i.e.
WHERE FIELD EQ EDIT(field,'999xx$')

It is generally advisable or required.
 
Report This Post
Virtuoso
posted Hide Post
ALWAYS put the semi-colon.
It is in the manual.
And one day, someone will tighten the code and then... Red Face!


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Expert
posted Hide Post
Always follow the manual, then if it breaks, you have a valid course of action.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Silver Member
posted Hide Post
Thank you!


product release:8203
o/s: windows 10
expected o/p formats: HTML,EXCEL,PDF
 
Posts: 34 | Location: Kearney, Nebraska | Registered: December 14, 2011Report This Post
Expert
posted Hide Post
If you with to flag this as closed, then please edit the first post in this thread, and add [CLOSED] to the title.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders