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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Format of Timestamp in WHERE clause

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Format of Timestamp in WHERE clause
 Login/Join
 
Platinum Member
posted
Hi
I want to put a filter on one of the fields (TIMESTAMP) to compare with some values, as shown below:
TABLE FILE ABC
SUM
TEMP_A
BY TEMP_B
BY TEMP_C
WHERE TIMESTAMP GE 'VALUE1' AND TIMESTAMP LE 'VALUE2'

My problem is : what is the format for 'VALUE1' and 'VALUE2'?
We have tried using the following formats within quotes:
2007/02/07 09:09:11.270524
20070207 090911270524
20070207090911270524
ETC.
Please let me know the format for TIMESTAMP which can be used in the WHERE clause.
Also, we tried using WebFOCUS Date-Time conversion functions to get the value of VALUE1 and VALUE2 in SET variables (dialogue manager variables). We were not able to convert the values to SET variables.
Let us know a workaround for the same.

Regards
Syed Arij
Using WebFOCUS 7.1.4 through Citrix.


Using WF 7.1.7/Dev Studio
 
Posts: 189 | Location: Boston, MA | Registered: July 12, 2005Report This Post
Platinum Member
posted Hide Post
Syed :
The easiest solution for you would be to define the TS field as A26 in the MFD and use the 26-byte representation in your WHERE clause.

Please search these forums for "Timestamp" and you will see previous threads that dicussed this topic in good detail.

Sandeep Mamidenna


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
 
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Syed,

The format for Date-Time values is:
WHERE TRANSDATE GT DT(2000/01/01 02:57:25)
See page 8-20 of WF 7.6 Creating Reports Language Manual.


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
Virtuoso
posted Hide Post
We've also found that the format varies with the database used. For DB2 it is 2007-01-01 23:59:59.999999


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Platinum Member
posted Hide Post
Hi all
Thanks for your suggestions. They worked just fine for me!

Regards
Syed


Using WF 7.1.7/Dev Studio
 
Posts: 189 | Location: Boston, MA | Registered: July 12, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Format of Timestamp in WHERE clause

Copyright © 1996-2020 Information Builders