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 

Inserting to VARCHAR(1190) with more than 255 chars.

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


Joined: 08 Apr 2005
Posts: 12
Topics: 7

PostPosted: Sat Jun 04, 2005 9:08 am    Post subject: Inserting to VARCHAR(1190) with more than 255 chars. Reply with quote

Hi,

Thru spufi or QMF, if I try to Insert value for a VARCHAR(1190) db2 column, (the actual value which I am trying to insert is more than 300 chars length) , it through's an SQLCODE -102 LITERAL STRING IS TOO LONG. STRING BEGINS string .Can anyone pls let me know why this is happening?. Is there any way of avoiding this? or is there any alternative of doing this?

Regards,

Krish
Back to top
View user's profile Send private message
rony&ruby
Beginner


Joined: 27 May 2005
Posts: 12
Topics: 1
Location: China

PostPosted: Sun Jun 05, 2005 7:45 am    Post subject: Reply with quote

Hi pkrish_18:

Had you tried with IKJEFT01 jcl run? You can write you sql in instream statements or write them in a dataset.

Maybe spufi has restiction on long string connect, but I am not sure.
And make sure that your connection of each ling was ok.

Welcome to discuss.

Rony&Ruby
_________________
Ron Yang
Back to top
View user's profile Send private message MSN Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Sun Jun 05, 2005 8:57 pm    Post subject: Reply with quote

pkrish18,

The error messages are self-explanatory. you cannot insert more than 255 characters using spufi or qmf. check this link for a detailed explanation of sql error code of -102

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNMCH11/2.1.6.9?SHELF=&DT=20010718150520&CASE=

why don't you load the table using load utility?

Check this link for a discussion about loading varchar colums using load utily

http://www.mvsforums.com/helpboards/viewtopic.php?t=244&highlight=varchar

Hope this helps...

Cheers

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


Joined: 27 May 2005
Posts: 12
Topics: 1
Location: China

PostPosted: Tue Jun 07, 2005 2:55 am    Post subject: Reply with quote

Thanks kolusu!
_________________
Ron Yang
Back to top
View user's profile Send private message MSN Messenger
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