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

How to have a SQL run for a specific time?


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

New User


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

PostPosted: Wed Mar 19, 2008 11:08 am
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: 792
Location: Chennai, India

PostPosted: Wed Mar 19, 2008 6:17 pm
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: 61
Location: San Diego

PostPosted: Thu May 29, 2008 2:35 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
Search our Forums:

Back to Top