Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with running DB2 query in Power Builder

Status
Not open for further replies.

docky5

Programmer
Sep 27, 2007
15
US
Hi,

There is a report page and it has a DB2 query which retrieves the information from DB2 tables and using some paramaters in the query which is gotten from a previous screen.
My problem is, the 1st variable gets only 1 parameter, but it occured that I would need to search by more value. The variable is a string type and used in the WHERE clause like this:
b.name = :C_name

But when I tested with hardcoding way like this:
b.name in ('40','GGG5')

It didn't retrieved anything hence when I search with only 1 value the retrieve has result!
What is wrong? Why it doesn't work with more parameter? The query is working in the mainframe when I run this.

Please help! Hope it is clear what is my problem.
Thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top