You are on page 1of 6

Community

Updated Rules of Engagement 

We have made some improvements to the way all of us engage within SAP
Community, namely how we share information, how we treat each other, and how
we can continue to learn. To continue to enjoy the Community, please adhere to
our updated SAP Community Rules of Engagement, documented here.

Ask a Question Write a Blog Post Login

Former Member
December 4, 2013
| 1 minute read

Executing a job by another job in


BODS 4.1 using simple script
 7  9  13,043
Follow

Step1:
 Like
In DATA SERVICES MANAGEMENT CONSOLE goto Batch Job Configuration Tab and
click on Export Execution Command.
 RSS Feed
This will create a .bat file with the job name (Job_TBS.bat) in the following path:

D:\Program Files (x86)\SAP BusinessObjects\Data


Services\Common\log\
Step2:

Use the below script to check whether the respective .bat file exist in the below path.

exec(‘cmd’,’dir “D:\\Program Files (x86)\SAP BusinessObjects\Data


Services\Common\log\”*>\\D:\\file.txt’);

Step3:

Create a new job (J_Scheduling) to trigger the job which needs to be executed
(Job_TBS).

Use the below script to trigger the job.

exec(‘cmd’,’D:\\”Program Files (x86)”\”SAP BusinessObjects”\”Data


Services”\Common\log\Job_TBS.bat’);

Now the job J_Scheduling will trigger the job Job_TBS using simple script
Alert Moderator

Assigned Tags

SAP Data Services

-exec

.bat

4.1

bods

cmd

command prompt

View more...

Similar Blog Posts 


BODI 11.7 to BODS 4.1 Migration
By
Former Member Nov 18, 2013

Help needed for Encrption of Zip file or Flat file through BODS job.
By
Former Member Jan 05, 2016

Steps for executing BODS job from Unix Script with user defined global parameters
By
Former Member Sep 02, 2013

Related Questions 
Exec job on a script in BODS
By
Sebastian Toccalino Jun 13, 2019

Math(s) in BODS R4.1 SP1


By
Former Member Mar 20, 2013
Error while executing a uinx script in BODS job - exit code 127
By
Former Member Nov 29, 2011

Join the Conversation 


SAP TechEd
Tune in for tech talk. Stay for inspiration. Upskill your future.

SAP BTP Learning Group


SAP Business Technology Platform Learning Journeys.

Coffee Corner
Join the new Coffee Corner Discussion Group.

7 Comments

You must be Logged on to comment or reply to a post.

Former Member
December 5, 2013 at 6:21 am

Good One..!!

Like 0 | Share

Former Member
December 10, 2013 at 12:25 pm

Thanks for Sharing

Like 0 | Share
Ramesh Murugan
January 7, 2014 at 2:39 pm

useful tips.

Like 0 | Share

Ahalya Inturi
November 12, 2014 at 7:53 am

Very Good document

Like 0 | Share

Swetha N
June 24, 2015 at 9:56 am

hi,

my requirement is to generate a .bat file.

but when i go to management console and export , it generates a .txt file and it is also a password protected.
we are not even able to open it.

this was the message that was showed up.

Export was successful.Password file created on Job Server mxtestdev00000:3500, at /maxdsq/dataservices/conf/BODS_dev_repo1.txt.

can anyone suggest?

Like 0 | Share

Former Member
January 14, 2016 at 8:16 am
if the called job (Job_TBS) has global variable, how i can pass these variables from the master job
(J_Scheduling) to the called job (Job_TBS)??

Like 0 | Share

Rama Shankar
March 20, 2019 at 9:51 pm

Useful steps- thanks

Like 0 | Share

Find us on

Privacy Terms of Use

Legal Disclosure Copyright

Trademark Cookie Preferences

Newsletter Support

You might also like