MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UPDATE query

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Kathy
Beginner


Joined: 08 Jun 2004
Posts: 7
Topics: 2

PostPosted: Thu Jun 10, 2004 9:18 am    Post subject: UPDATE query Reply with quote

Hello,
When I executed the below UPDATE query
UPDATE ABCD.TABLE
SET NAME = 'KAT'
WHERE NAME = 'ABC'
AND SEX = 'F'
AND (AGE > '01.10.1774')
AND OCUNTRY IN ('IND') ;

I am endedup with the below message
-----------------------------------------------------------------------DSNT408I SQLCODE = -104, ERROR: ILLEGAL SYMBOL "-". SOME SYMBOLS THAT MIGHT BE
LEGAL ARE: ( END SET CALL DROP FREE HOLD LOCK OPEN PARM ALTER BEGIN
CLOSE
DSNT418I SQLSTATE = 42601 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNHPARS SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD = 0 0 0 -1 1660 0 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD = X'00000000' X'00000000' X'00000000' X'FFFFFFFF'
X'0000067C' X'00000000' SQL DIAGNOSTIC INFORMATION
---------+---------+---------+---------+---------+---------+---------+---------------------------------------------------------------------------------------------
Any idea.
Thnx
Kathy
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Jun 10, 2004 9:30 am    Post subject: Reply with quote

Kathy,

I don't see '-' symbol anywhere in your query. I suspect that you have some garbage value after column 72. Clear those characters and rerun your query

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kathy
Beginner


Joined: 08 Jun 2004
Posts: 7
Topics: 2

PostPosted: Thu Jun 10, 2004 9:40 am    Post subject: Reply with quote

Hello Kolusu,
I am sure that there no such '-' char after 72 clmn and even before that.
If I try to execte some other query in the same place its working fine Sad

Any idea.

Thnx
Kathy
Back to top
View user's profile Send private message
vini
Intermediate


Joined: 12 Jan 2004
Posts: 240
Topics: 48
Location: Maryland

PostPosted: Thu Jun 10, 2004 12:27 pm    Post subject: Reply with quote

Kathy , If you are sure of that , are you also sure that you have Pasted the UPDATE QUERY just as it was when you Executed it ??? If not , paste the EXACT query here. There is no doubt that the presence of a hypen (-) somewhere is cause of the problem.
Back to top
View user's profile Send private message
Ganti
Beginner


Joined: 04 Dec 2002
Posts: 8
Topics: 3
Location: St.Louis, MO, USA

PostPosted: Mon Jun 14, 2004 1:25 pm    Post subject: Reply with quote

Kathy,

There is a OCUNTRY, I am not sure if that is correct.
Also, I think your WHERE condition needs some parantheses.

Could you try this -

UPDATE ABCD.TABLE
SET NAME = 'KAT'
WHERE
(NAME = 'ABC'
AND go-away-spammer-sucker = 'F'
AND (AGE > '01.10.1774')
AND COUNTRY IN ('IND')) ;
_________________
Ganti
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group