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

Batch Script Creation for BODS Jobs

$
0
0

Hi Team,

 

We would like to know for below scenario, what batch logic would be good to write and the same we need to schedule on monthly basis.

 

1) Checking file availability

2) Running .bat file of an ETL Job (All STG Jobs -> Dimension -> Fact with Pros & Cons)

3) Exit if file is not available(Should not throw an error as we will be going to schedule this whole batch script on Win Scheduler)

 

Please help in here on how to write a batch script.

Below is an example what I wrote and it works fine but i have to do it for all STG, Dimension & Fact jobs which are interdependent.

 

 

 

@echo off if exist "E:\BODS_Job_Files\ROI_SampleFeed\Job_Hosted_Sites.txt" ( msg * Execute batch job Job_Hosted_Sites. CD E:\BODS_Job_Files\ROI_SampleFeed start Job_Hosted_Sites.bat      msg * Job Job_Hosted_Sites completed. exit ) else ( msg * File at the location is not available.)

Thanks,

Abdulrasheed.


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>