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
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm

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