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
 
How to have a SQL run for a specific time?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
rakesh17684

New User


Joined: 08 Oct 2006
Posts: 60
Location: San Diego

PostPosted: Wed Mar 19, 2008 11:08 am    Post subject: How to have a SQL run for a specific time?
Reply with quote

Hi,

We have a front end triggering a SP. Even after the front end is timed out, SP still keeps on running, which creates long running threads in the database. Need to stop the SP from running for a long time. Can anybody help me out.
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Wed Mar 19, 2008 6:17 pm    Post subject:
Reply with quote

How long a stored procedure can run will be determined by ASUTIME parameter of CREATE/ALTER PROCEDURE.
Back to top
View user's profile Send private message
rakesh17684

New User


Joined: 08 Oct 2006
Posts: 60
Location: San Diego

PostPosted: Thu May 29, 2008 2:35 pm    Post subject: Reply to: How to have a SQL run for a specific time?
Reply with quote

How to edit that parameter???
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Thu May 29, 2008 3:22 pm    Post subject:
Reply with quote

OPen your SP and view the declaration ....

something like

Code:


CREATE PROCEDURE CCTDB2S.CCRFIT02 ()


    RESULT SETS 1
    LANGUAGE SQL
    MODIFIES SQL DATA
    COLLID CCT_REP
    WLM ENVIRONMENT DB2UWLMP
    ASUTIME NO LIMIT
    RUN OPTIONS ''



here you can change the ASUTIME ... the above SP has no time limit
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 SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 17 Sat Feb 17, 2018 4:20 pm
No new posts Need to identify top 10 costly or tim... ashek15 DB2 4 Wed Feb 14, 2018 3:20 am
No new posts Logic to skip Maximum time-stamp and ... vickey_dw DB2 2 Thu Feb 01, 2018 11:15 pm

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