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     [SOLVED] Dates in Where Clause

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Dates in Where Clause
 Login/Join
 
Silver Member
posted
Hi All,

I have an Issue in QA environment.I want to filter out some of the dates from the field called Reported_date ,those are in YYMD format and total 16 values ,

WHERE Reported_Date NE '1900/12/31' OR '2008/01/01' OR '2008/01/21' OR '2008/03/21' OR '2008/03/24' OR '2008/05/26' OR '2008/07/04' OR '2008/09/01' OR '2008/11/27' OR '2008/11/28' OR '2008/12/24' OR '2008/12/25' OR '2008/12/26' OR '2008/12/29' OR '2008/12/30' OR '2008/12/31';

when I ran the report Iam getting EDASERVER Crashed Error Message

But ,If I give only 12 out of 16 Date values Report is working fine..

Any suggestions,,

Thanks in Advance,
Saikumar

This message has been edited. Last edited by: Kerry,


WebFOCUS 8103 Appstudio, Dev Studio MRE
Client Windows 7, Serveron Unix.
Excel, PDF, HTML,AHTML
 
Posts: 38 | Registered: January 24, 2008Report This Post
Virtuoso
posted Hide Post
quote:
WHERE Reported_Date NE '1900/12/31' OR '2008/01/01' OR ... OR '2008/12/31';


What's the Format of Reported_Date?


Try using IN:
WHERE NOT ( Reported_Date IN (
'1900/12/31', '2008/01/01', '2008/01/21', '2008/03/21', '2008/03/24',
'2008/05/26', '2008/07/04', '2008/09/01', '2008/11/27', '2008/11/28',
'2008/12/24', '2008/12/25', '2008/12/26', '2008/12/29', '2008/12/30',
'2008/12/31') ) ;


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Expert
posted Hide Post
What is the data source?

If the format is YYMD, then you don't need quotes and slashes unless the backend data base requires them.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Expert
posted Hide Post
And it looks like you could use a HOLIDAY file.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Silver Member
posted Hide Post
Thanks, you All I got the solution.

Reported_date format is YYMD It's DEFINE Master file field.


If I want to use the holiday file ,Can I use qutoes or commas for each value of the date in the text file.

Thanks,
Saikumar.


WebFOCUS 8103 Appstudio, Dev Studio MRE
Client Windows 7, Serveron Unix.
Excel, PDF, HTML,AHTML
 
Posts: 38 | Registered: January 24, 2008Report This Post
Virtuoso
posted Hide Post
You do realize, I hope, that by setting your selection criteria against a DEFINEd field, you could be creating a great deal of inefficiency. Your process would still need to read EVERY record, calculating your DEFINE field value and THEN throwing out the records that don't meet your criteria. You would be MUCH better off to use the REAL field that your define is based on. Guess it depends on the size of your database.


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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Dates in Where Clause

Copyright © 1996-2020 Information Builders