Skip to Content
0
Former Member
May 08, 2014 at 10:55 AM

Executing a job by another job using exec command

440 Views

Hi All,

I have a requirement as follows,I am triggerring the jobs from one parent job,where triggered jobs should run in parallel.Below code waits for Job_Test_1 to complete and then triggers the Job_Test_2.But what I want is Job_Test_2 also should start when Job_Test_1 is running.How to achive this in SAP BODS.

[$G_JOB_NAME]=Job_Test_1;
print('The job is [$G_JOB_NAME] ');
exec('D:\Installation_folder\Data Services\log\[$G_JOB_NAME].bat','',1);
print('Failed job [$G_JOB_NAME] triggered');

[$G_JOB_NAME]=Job_Test_2;
print('Second job triggered ');
exec('D:\Installation_folder\Data Services\log\[$G_JOB_NAME].bat','',1);
print('The job second job triggered');

Thanks for your help in advance.

Indira