Skip to Content
author's profile photo Former Member
Former Member

Batch job with 2 conditions

Hi,

We have a program that will create a batch job and then we need to go to SM35 to run that batch job manually. We want to avoid this manual step and what we want to do is to as soon as our program runs it will create a batch job and then batch job should kick off automatically.

One of the solution that came to my mind is to schedule a batch job with two conditions:

1. in first condition it will run our main program

2. and in 2nd step it will look out for the batch job that created in SM35 and will kick off that, but I am not sure how can i do this using Sm36.

I was also wondering if there is another way so that we can just avoid the batch run for the second step?

So can you please help me with this.

Thanks,

Rajeev

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2009 at 08:59 PM

    use RSBDCSUB and have it as a second step.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 04, 2009 at 03:26 PM

    SM35 -> batch sessions, so I assume you are talking about these.

    You can start sessions under program control by submitting program RSBDCSUB after creation of the session.

    Thomas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2009 at 03:28 PM

    Hi, there is a possibility to start a second batch job from the first job. Have a look for the function modules 'JOB_OPEN', 'JOB_SUBMIT'and 'JOB_CLOSE'. Succes.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.