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

Any way to overcome -101 error


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

New User


Joined: 21 Dec 2007
Posts: 88
Location: My Desk

PostPosted: Thu Aug 22, 2013 8:33 am
Reply with quote

Hi,

is there any way to overcome -101 error?

i got to run a big query and i am trying to use DSNTEP2 which has 32K limitation.
Back to top
View user's profile Send private message
subdalal

New User


Joined: 27 Sep 2010
Posts: 21
Location: Boudh

PostPosted: Thu Aug 22, 2013 11:41 am
Reply with quote

Hi,
Please go thru the below link:

pic.dhe.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=%2Fcom.ibm.db2z9.doc.codes%2Fsrc%2Ftpc%2Fdb2z_sqlcodes.htm
Back to top
View user's profile Send private message
PrabakarV

New User


Joined: 21 Dec 2007
Posts: 88
Location: My Desk

PostPosted: Thu Aug 22, 2013 7:55 pm
Reply with quote

it says why the error is happening. But i need to know the alternatve other than spliting the query into pieces. I serached the forum but couldnt find anything. may be my search is not good enough.
Back to top
View user's profile Send private message
chandan.inst

Active User


Joined: 03 Nov 2005
Posts: 275
Location: Mumbai

PostPosted: Thu Aug 22, 2013 7:56 pm
Reply with quote

Hi,

For that puprose you would need to show us your query and explain expected output

Regards,
Chandan
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Thu Aug 22, 2013 8:32 pm
Reply with quote

Quote:
DSNTEP2 which has 32K limitation.

Which version of DB2 are you using? Limit was increased to 2M starting DB2 V8.
How long is your statement?
Back to top
View user's profile Send private message
PrabakarV

New User


Joined: 21 Dec 2007
Posts: 88
Location: My Desk

PostPosted: Thu Aug 22, 2013 10:05 pm
Reply with quote

my statement has 500K lines of SQL. i am able to run upto 3000 lines of SQL.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Aug 22, 2013 10:18 pm
Reply with quote

PrabakarV wrote:
my statement has 500K lines of SQL. i am able to run upto 3000 lines of SQL.

Would you care to enlighten us as to what you're trying to accomplish with a SQL statement half a million lines long?
Back to top
View user's profile Send private message
PrabakarV

New User


Joined: 21 Dec 2007
Posts: 88
Location: My Desk

PostPosted: Thu Aug 22, 2013 10:45 pm
Reply with quote

I need to update around 500K records and every record is unique So where clause comes around half M
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Thu Aug 22, 2013 11:08 pm
Reply with quote

And you thought dynamic SQL is your best option, because..?
If it wasn't clear earlier, the limit is 2M bytes not lines.
500K lines with 80 byte record length (assumed) is beyond 2M limit.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Aug 22, 2013 11:36 pm
Reply with quote

PrabakarV wrote:
I need to update around 500K records and every record is unique So where clause comes around half M

Occasionally, it is necessary to write a program.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 23, 2013 12:06 am
Reply with quote

Hello,

Who in your organization approved such an approach?

This will be Far Better served using a program . . .
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Aug 23, 2013 1:26 am
Reply with quote

By the way, depite being asked, don't show us the query.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Fri Aug 23, 2013 2:40 am
Reply with quote

dick scherrer wrote:
Who in your organization approved such an approach?


Who else...
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 23, 2013 2:58 am
Reply with quote

Heh heh heh icon_smile.gif

And if the query is shown, maybe not all of the values . . .?

Not only does Sql CHOKE, but this topic might overflow as well . . . icon_cool.gif
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Fri Aug 23, 2013 3:26 am
Reply with quote

I gotta say, this is the worst idea I have seen in a while.
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top