IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Getting DSNE603E Error when running query in Spufi


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karisurya

New User


Joined: 02 Aug 2007
Posts: 64
Location: Bangalore

PostPosted: Wed Feb 18, 2009 3:22 pm
Reply with quote

Hi,
When i try to run the following query in SPUFI i am getting DSNE603E
INPUT STATEMENT HAS UNBALANCED APOSTROPHES error.

SELECT *
FROM DB2XXXX.TBL1111
WHERE CONCAT(S_TYPE,S_NO) IN ('T99268','F99267');

When i execute the same query in QMF i am not getting any issues and query getting executed.

Can any one help me solving this problem?

Thanks,
Surya
Back to top
View user's profile Send private message
aishwarya_20

New User


Joined: 19 Nov 2008
Posts: 57
Location: pune

PostPosted: Wed Feb 18, 2009 3:27 pm
Reply with quote

Try with
SELECT *
FROM DB2XXXX.TBL1111
WHERE CONCAT(S_TYPE,S_NO) IN (''T99268','F99267'');
OR

SELECT *
FROM DB2XXXX.TBL1111
WHERE CONCAT(S_TYPE,S_NO) IN ('T99268F99267');
Back to top
View user's profile Send private message
karisurya

New User


Joined: 02 Aug 2007
Posts: 64
Location: Bangalore

PostPosted: Wed Feb 18, 2009 3:34 pm
Reply with quote

Sorry aishwarya, It dint help in solving the problem.

Actually when i tried your query in QMF it is showing as error in sql query.

Thanks
Back to top
View user's profile Send private message
aishwarya_20

New User


Joined: 19 Nov 2008
Posts: 57
Location: pune

PostPosted: Wed Feb 18, 2009 3:40 pm
Reply with quote

Oh, Then i also don't have any other solution to run query in Spufi.
Back to top
View user's profile Send private message
aishwarya_20

New User


Joined: 19 Nov 2008
Posts: 57
Location: pune

PostPosted: Wed Feb 18, 2009 3:50 pm
Reply with quote

Hi,
I have got the solution.

You can use following query:-
SELECT *
FROM DB2XXXX.TBL1111
WHERE CONCAT(S_TYPE,S_NO) IN ('T99268F99267');
Back to top
View user's profile Send private message
karisurya

New User


Joined: 02 Aug 2007
Posts: 64
Location: Bangalore

PostPosted: Wed Feb 18, 2009 4:04 pm
Reply with quote

aishwarya_20 wrote:
Hi,
I have got the solution.

You can use following query:-
SELECT *
FROM DB2XXXX.TBL1111
WHERE CONCAT(S_TYPE,S_NO) IN ('T99268F99267');


Whats the difference between this query and 1st one you given(2nd part of 1st query)
Back to top
View user's profile Send private message
aishwarya_20

New User


Joined: 19 Nov 2008
Posts: 57
Location: pune

PostPosted: Wed Feb 18, 2009 4:06 pm
Reply with quote

I ran same type of query in spufi. It is working. For you also it should work.
Back to top
View user's profile Send private message
karisurya

New User


Joined: 02 Aug 2007
Posts: 64
Location: Bangalore

PostPosted: Wed Feb 18, 2009 4:18 pm
Reply with quote

Please let me know if any of you have any other suggestions?

Thanks
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Wed Feb 18, 2009 4:50 pm
Reply with quote

Surya,

Try this,
Code:
SELECT *
FROM DB2XXXX.TBL1111
WHERE CONCAT(STRIP(S_TYPE,both),strip(S_NO,both)) like 'T99268F99267';


It would be very helpful if you give sample data.

Sushanth Bobby
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts DELETE SPUFI DB2 1
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top