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     [CLOSED] Using a wildcard character in WHERE statement

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Using a wildcard character in WHERE statement
 Login/Join
 
Gold member
posted
sample code below:
TABLE FILE EMPINFO
PRINT
PIN
NAME
WHERE NAME NE MISSING;
WHERE NAME NE 'M%';
END

I've even tried WHERE NAME NOT LIKE 'M%', but it doesn't work. The rows with the NAME fields do not appear but the names starting with 'M' do. Can someone tell me what I'm doing wrong?

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


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report This Post
Expert
posted Hide Post
How about this?

TABLE FILE EMPDATA
PRINT
PIN
LASTNAME
FIRSTNAME   

BY LASTNAME NOPRINT
WHERE LASTNAME IS-NOT MISSING;
WHERE NOT LASTNAME LIKE 'M%';
END


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
Gold member
posted Hide Post
Actually it should be an OR.
WHERE (NAME NE MISSING) OR (NAME NOT LIKE 'M%');

I tried
WHERE (NAME IS-NOT MISSING) OR (NOT NAME LIKE 'M%')
It didn't work so I think I have to create a flag.


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report This Post
Expert
posted Hide Post
An OR will give you all names because the names that begin with M will fall in the first bucket and the names that do not begin with M will in the second bucket...


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
So what about AND instead of OR




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Gold member
posted Hide Post
You're right the didn't work. The OR didn't work nor did the FLAG. I used your previous code (WHERE LASTNAME IS-NOT MISSING;
WHERE NOT LASTNAME LIKE 'M%'Wink, the NULL VALUES are still coming up.


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report This Post
Gold member
posted Hide Post
The AND didn't work.


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report This Post
Master
posted Hide Post
the webfocus wildcard is
$*


So you can say
 FIELD EQ 'XXX$*'


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report This Post
Expert
posted Hide Post
quote:
The wildcard characters for screening on masked fields with:

LIKE and NOT LIKE operators are % and _. The percent allows any following sequence of zero or more characters. The underscore indicates that any character in that position is acceptable. The LIKE operator is supported in expressions that are used to derive temporary fields with either the DEFINE or COMPUTE command.

IS (or EQ) and IS-NOT (or NE) operators are $ and $*. The dollar sign indicates that any character in that position is acceptable. The $* is shorthand for writing a sequence of dollar signs to fill the end of the mask without specifying a length. This combination can only be used at the end of the mask.
In IF clauses and those WHERE clauses that can be translated into one or more IF clauses, you can treat the $ and $* characters as normal characters rather than wildcards by issuing the SET EQTEST=EXACT command.



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
Gold member
posted Hide Post
Will this work for you?

SET MISSING=ON
...
WHERE NOT (NAME IS MISSING OR NAME LIKE 'M%');


The SQLTRACE (Oracle) translates to

WHERE (T1."NAME" NOT LIKE 'M%' AND T1."NAME" IS NOT NULL);

-- Dan in Omaha

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


WebFOCUS 8.8.05M (Prod)/8.0.09(Sandbox) Windows
 
Posts: 56 | Location: Omaha, Ne USA | Registered: October 15, 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     [CLOSED] Using a wildcard character in WHERE statement

Copyright © 1996-2020 Information Builders