Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Executing a job by another job using exec command

$
0
0

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


Viewing all articles
Browse latest Browse all 4013

Trending Articles