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

problem with SUBSTR


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

New User


Joined: 15 Jun 2007
Posts: 92
Location: bangalore

PostPosted: Fri Aug 05, 2011 5:43 pm
Reply with quote

HI All,

I am using SUBSTR function in one of my query and it is taking too much of execution time.. Can some one let me know how can i reduce this..
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 05, 2011 5:50 pm
Reply with quote

Not without a total blind guess. All we have seen of your code is one word.

Enter all that you think is relevant, use the Code tags to preserve formatting, use Preview to confirm it looks how you want. Complete posting and Submit.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Aug 05, 2011 6:23 pm
Reply with quote

Quote:
it is taking too much of execution time

It is very relative term.. some time I call 1 ms also too much time...
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: Sat Aug 06, 2011 9:37 am
Reply with quote

Hello,

Why do you believe the time is due to the SUBSTR?

As mentioned, you need to post your query.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Mon Aug 08, 2011 12:47 pm
Reply with quote

substr() does not take long.
a where clause on substr() might.
Back to top
View user's profile Send private message
cmsmoon

New User


Joined: 17 Jun 2010
Posts: 75
Location: Chennai

PostPosted: Mon Sep 12, 2011 2:13 pm
Reply with quote

Please post your sql query and how much records you want to do substring?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 12, 2011 2:24 pm
Reply with quote

the TS has disappeared, little hope to get a clarification !

I really feel that the topics where the TS disappears should be deleted after a reasonable delay ( 1 month should be more than enough )

and the hope is that the TS profile skills ( surfing ) are better than the IT skills
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Need to add field to copybook, proble... COBOL Programming 14
Search our Forums:

Back to Top