Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Any way to overcome -101 error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Any way to overcome -101 error
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    Post subject:
Reply with quote

Hi,
Please go thru the below link:

http://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    Post subject:
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: 269
Location: Mumbai

PostPosted: Thu Aug 22, 2013 7:56 pm    Post subject:
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: 685
Location: Earth

PostPosted: Thu Aug 22, 2013 8:32 pm    Post subject:
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    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Thu Aug 22, 2013 10:18 pm    Post subject:
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    Post subject:
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: 685
Location: Earth

PostPosted: Thu Aug 22, 2013 11:08 pm    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Thu Aug 22, 2013 11:36 pm    Post subject:
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

Site Director


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

PostPosted: Fri Aug 23, 2013 12:06 am    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Fri Aug 23, 2013 1:26 am    Post subject: Reply to: Any way to overcome -101 error
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

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Fri Aug 23, 2013 2:40 am    Post subject:
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

Site Director


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

PostPosted: Fri Aug 23, 2013 2:58 am    Post subject:
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: 641
Location: Whitby, ON, Canada

PostPosted: Fri Aug 23, 2013 3:26 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm
No new posts IDMS/DC-COBOL program - SNAP error wh... rakeshsekar1987 IDMS/ADSO 5 Tue Sep 13, 2016 8:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us