Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
problem with SUBSTR

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: problem with SUBSTR
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Fri Aug 05, 2011 5:50 pm    Post subject: Reply to: problem with SUBSTR
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    Post subject:
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

Site Director


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

PostPosted: Sat Aug 06, 2011 9:37 am    Post subject:
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    Post subject:
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    Post subject: Reply to: problem with SUBSTR
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10373
Location: italy

PostPosted: Mon Sep 12, 2011 2:24 pm    Post subject: Reply to: problem with SUBSTR
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    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 Having a problem FTP'ng to the MF pahiker All Other Mainframe Topics 2 Fri Nov 10, 2017 8:20 pm
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts Problem commiting to DB2 from IMS MPP Ole Soerensen IMS DB/DC 2 Wed Jul 26, 2017 5:19 pm
No new posts SUBSTR for Date functions Shaheen Shaik DB2 4 Thu Apr 06, 2017 2:14 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us