473,396 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Like in host variable in DB2 Query

I am writing a cursor and in where condition I am using like variable
for e.g
CUST-ID LIKE (:WS-CUST-ID)


in WS-CUST-ID, I wam paasing value ABC%,while fethcing records from cursor, I am getting SQLCODE= 100.

simply checking the query in the DB2 table, records are getting selected.
Jul 3 '16 #1
0 1765

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: claus.hirth | last post by:
Does the term 'host variable' cover a variable locally declared in a SQL-PL stored procedure? I am asking this question in the context of the SELECT INTO statement.
4
by: 4.spam | last post by:
Hello. UDB DB2 v8.2.1 for LUW. Why this function can't be compiled? --- CREATE FUNCTION MYLIKE(NM VARCHAR(128)) LANGUAGE SQL RETURNS INTEGER BEGIN ATOMIC RETURN
3
by: young | last post by:
Hello all, I would like to use same SQL statement in my SQC program for several tables I tried something like that: - sql_sts="SELECT col1, col2 FROM ?" - EXEC SQL PREPARE dsql FROM...
9
by: Drum2001 | last post by:
Hello All! I am using the following code during an On Click event for a button. It works properly to create a query for a report: Private Sub Command14_Click() If IsNull(Me.Text30) Then ' No...
2
by: modfreq | last post by:
Hi, I am fairly new to Access and VBA. I have found a few threads relating to my problem, but none have led to a solution, so if I hope that I am not restating an old question... I am writing...
1
by: young | last post by:
Hello all, I tried to do a sqc program with a "SELECT column INTO :host_variable FROM table" statement and got an error SQL4942N="The statement selects an incompatible data type into host...
1
by: saadkhan | last post by:
I want to find a certain string pattern from database and u`v used the following query for that: SELECT * FROM myTable WHERE name LIKE 'a%' But i want to search a pattern which is been given by...
0
by: mfdeveloper | last post by:
I am trying to update some data in XML column. Input data is coming from file. I wrote this SQL in COBOL program. Here is my SQL. EXEC SQL UPDATE COMFIL.FORM set Form_Data_xml = ...
4
by: vodkasoda | last post by:
I may not be that good at C#, but I'm getting pretty good at asking questions :-D !!! I need to "shuffle" an Array, I've found different ways of doing it but can't get any of them to work, this...
1
heiro1
by: heiro1 | last post by:
Hello All, I was curious as to why the for loop in the example below, starts col = 1 instead of col = 0. Are they doing that just for this example because the largest value is stored in column 0...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.