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] WHERE * NOT_IN

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] WHERE * NOT_IN
 Login/Join
 
Platinum Member
posted
Hi all,

I am having some difficulty trying to select data source values that are not in a list.

Example:

TABLE FILE GGSALES
PRINT *
WHERE ST NOT_IN ('CT','NY');
END
-RUN

Returns the error:
(FOC263) EXTERNAL FUNCTION OR LOAD MODULE NOT FOUND: NOT_IN

I have checked the Help example and all looks ok:
"WHERE bank_name NOT_IN ('ASSOCIATED BANK', CITIBANK)"

I have tried diffenent combinations of NOT_IN / NOT IN etc. Any ideads?

Using version 535.

Thanks

This message has been edited. Last edited by: <Kathryn Henning>,


WebFocus 765. iSeries v5r4
 
Posts: 175 | Location: England | Registered: April 11, 2006Report This Post
Platinum Member
posted Hide Post
Webfocus puts the NOT early in the clause:

Try this:

 TABLE FILE GGSALES
PRINT *
WHERE NOT ST IN ('CT','NY');
END
-RUN 


-Brian

Webfocus v7.6.1 on Windows XP
 
Posts: 108 | Registered: June 19, 2006Report This Post
Platinum Member
posted Hide Post
Thanks Brian, that made it work fine.

Had you come across this before? Seems like a strange order to me!


WebFocus 765. iSeries v5r4
 
Posts: 175 | Location: England | Registered: April 11, 2006Report This Post
Platinum Member
posted Hide Post
It's just the webfocus language...how they do things. I came from a SQL background, so I did run across this myself.


-Brian

Webfocus v7.6.1 on Windows XP
 
Posts: 108 | Registered: June 19, 2006Report This Post
Member
posted Hide Post
So if the example in the documentation does not work... Why doesn't IB update the documentation?


7.7.03, Windows
HTML, Excel, PDF,
 
Posts: 13 | Registered: October 07, 2013Report This Post
Platinum Member
posted Hide Post
Hi Steven,

I checked the "Creating Reports With WebFOCUS Language" Version 8.0.0 and Version 7 Release 7 documentation, and it specifies the following:

Syntax:
WHERE [NOT] fieldname IN FILE file
where:
fieldname
Is the name of the selection field. It can be any real or temporary field in the data source.
file
Is the name of the file.
This is the ddname assigned by a DYNAM or TSO ALLOCATE command for z/OS.


So it would appear that the documentation is up to date.


WebFOCUS 8.2.06 mostly Windows Server
 
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008Report This Post
Virtuoso
posted Hide Post
quote:
WHERE bank_name NOT_IN ('ASSOCIATED BANK', CITIBANK)

This is MAINTAIN syntax, not TABLE syntax, check the help examples and this is from the Maintain Language Reference manual.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Virtuoso
posted Hide Post
quote:
Had you come across this before? Seems like a strange order to me!


If you look at it from the standpoint of "negating an expression" it doesn't look that strange anymore. Using additional brackets makes this easier to understand:

WHERE NOT (ST IN ('CT','NY'))



quote:
It's just the webfocus language...how they do things


SQL operates quite similarly in this case although it allows for some more "flexibility" when it comes to syntax. The following construct is pretty much the same as the WebFOCUS counterpart:

select ... from ...
 where not st in ('CT','NY')


And is also equivalent to this:

select ... from ...
 where st not in ('CT','NY')


Some may actually argue that "not in" looks weird as it seems as if they placed 2 consecutive operators instead of 1. Roll Eyes



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 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     [SOLVED] WHERE * NOT_IN

Copyright © 1996-2020 Information Builders