|
View previous topic :: View next topic
|
| Author |
Message |
komal
New User
Joined: 09 May 2005 Posts: 17
|
|
|
|
Hi All,
My COBOL+DB2 program is not getting compiled when i am trying to use SQL Scalar function REPLACE in my application program. Please find the sample SQL Query below
SELECT REPLACE(LTRIM(RTRIM(:xyz)),',','') into :xxx
FROM SYSIBM.SYSDUMMY1;
can any one let me know what is the issue
Thanks
Kiran |
|
| Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
| What error message are you getting? |
|
| Back to top |
|
 |
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1056 Location: Richmond, Virginia
|
|
|
|
| Your functions are DB2. How about the argument you are applying the functions to - is it DB2 or COBOL? |
|
| Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
| What are the definitions of xyz and xxx. |
|
| Back to top |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
| since xyz and xxx are host variables, it appears that the OP is using db2 cycles to accomplish abit of data manipulation instead of using the appropriate cobol commands. |
|
| Back to top |
|
 |
|
|