Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to exit submitted program after wait time period.

Former Member
0 Kudos

Hi,

My requirement is, I am using SUBMIT PROGRAM statement. Now i want to exit that program forcefully and return to my current program after certain time say 15 secs.

How can i achieve this ?

Regards

Vikash Singh

2 REPLIES 2

former_member184578
Active Contributor
0 Kudos

Hi.,

Use SUBMIT PROGRAM 'ZPROG1' and Return.,

now in the last line of ZPROG1 use Wait Statement .,

So that After Submitting It will wait and then return,.

hope this helps u.,

Thanks & Regards,

Kiran

Former Member
0 Kudos

Hello Vikas ,

One solution can be to check the execution time in the report you are submitting and when the specified time period ends exit from the program.

You can use the command get run time to get the execution time.

Regards,

Arun