×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
If you don't Trim Searchcriteria you get trailing blanks in your like comparison which throws it off.
Paul
Principal Programmer Analyst
IS Supply Chain/Replenishment
-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Bryce Martin
Sent: Wednesday, October 06, 2010 10:15 AM
To: Rational Developer for IBM i / Websphere Development Studio Client forSystem i & iSeries
Subject: [WDSCI-L] View SQL Statment while debugging in WDSC
I have an sql statement that when I run it from outside my program using
an sql utility like FROG I get the search results I expect. But when I
run the statement in my RPGLE program it returns with an sql 100 code
which means no results returned.
here is the sql statement...
select value from BMDATA/rcm#name where key like '%HOSPITAL%'
Here is the statement from in my program...
Exec SQL
Declare C1 Cursor for
Select value from bmdata/rcm#name where key like
:SearchCriteria;
The value of SearchCriteria is '%HOSPITAL%'
These look exactly the same to me....I was wondering if there is a way to
view the actual sql statement using monitor when debugging in WDSC using a
SEP?
Thanks
Bryce Martin
Programmer/Analyst I
570-546-4777
--- This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us and destroy this message immediately. ---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.