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] How to use "not" logic in a FOCEXEC

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to use "not" logic in a FOCEXEC
 Login/Join
 
Guru
posted
In a FOCEXEC I know you can use logic like the following:

IF BEGIN_DATE IS-FROM &DATE1 to &DATE2

but can you use logic like this:

IF END_DATE NOT < &DATE1
IF BEGIN_DATE NOT > &DATE2

In other words, in my program and MFD, I have a BEGIN_DATE and END_DATE and I also key in on my form a beginning date and ending date. What I want to confirm is that dates I process are within a date range. I want to exclude records whose ending date is less than my BEGIN_DATE or whose beginning date is greater than my END_DATE.

I know that's somewhat muddled, but can't think of another way to say it.

Thanks in advance!

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


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
 
Posts: 250 | Registered: January 14, 2008Report This Post
Expert
posted Hide Post
Wouldn't be easier to think about the rows you want to INCLUDE in the report, thus avoiding the negative and the NOT?

Would this work:

WHERE BEGIN_DATE GE &DATE1
WHERE END_DATE LE DATE2


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Think of it as a boolean expression -
IF NOT(END_DATE LT &DATE1)
IF NOT(BEGIN_DATE GT &DATE2)

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, 2004Report This Post
Expert
posted Hide Post
yes of course.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
I agree with Francis. Get rid of negative logic where you can. It can bite when least expected. Big Grin


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
Change

IF BEGIN_DATE IS-FROM &DATE1 to &DATE2

to

IF BEGIN_DATE NOT-FROM &DATE1 to &DATE2


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Guru
posted Hide Post
WOW! So many responses, so little time!! Thank you to all who responded and offered suggestions.... Tony A, I believe I'll use your suggestion - it looks the most like what I am in need of.

Again, a big thanks to all who replied!


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
 
Posts: 250 | Registered: January 14, 2008Report 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] How to use "not" logic in a FOCEXEC

Copyright © 1996-2020 Information Builders