MS_SCOM_Overall.bat:
This code shows the Windows batch job that runs the MS_SCOM_Overall.sas
program.
echo off
set ADAPTER=MSSCOM
set DATETIME=%date:~10,4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%
set BASE=C:\Data\Jobs\%ADAPTER%
set LOGDIR=%BASE%\logs
set JOBDIR=C:\SAS\ITRM32\Lev1\SASITRM\SASEnvironment\SASCode\Jobs
set SRC=MS_SCOM_Overall
set SAS=C:\SAS\ITRM32\Lev1\SASITRM\sas.bat
%SAS% -sysin %BASE%\%SRC%.sas -log %LOGDIR%\%SRC%_%DATETIME%.log
MS_SCOM_Overall.sas:
This code shows the SAS program that runs all the daily jobs (staging,
aggregation, and reporting) for an MS SCOM data mart.
%let adapter = %sysget(ADAPTER);
%let datetime = %sysget(DATETIME);
%let JOBhome = %sysget(JOBDIR);
%let LOGhome = %sysget(LOGDIR);
%rmrunetl(adapter = &ADAPTER
,stagingJob = &JOBhome\MS_SCOM_Staging.sas
,stagingLog = &LOGhome\ MS_SCOM_Staging_&datetime..log
,aggJob1 = &JOBhome\InfoStore_Aggregation.sas
,aggJob2 = &JOBhome\InfoStoreMailbox_Aggregation.sas
,aggJob3 = &JOBhome\Disk_Aggregation.sas
,aggJob4 = &LOGhome\System_Aggregation.sas
,aggLog1 = &LOGhome\InfoStore_Aggregation_&datetime..log
,aggLog2 = &LOGhome\InfoStoreMailbox_Aggregation_&datetime..log
,aggLog3 = &LOGhome\Disk_Aggregation_&datetime..log
,aggLog4 = &LOGhome\System_Aggregation_&datetime..log
,reportJob1 = &JOBhome\InfoStore_Daily_Reporting.sas
,reportJob2 = &JOBhome\InfoStoreMailbox_Daily_Reporting.sas
,reportJob3 = &JOBhome\Disk_Daily_Reporting.sas
,reportJob4 = &JOBhome\System_Daily_Reporting.sas
,reportLog1 = &LOGhome\InfoStore_Daily_Reporting_&datetime..log
,reportLog2 = &LOGhome\InfoStoreMailbox_Daily_Reporting_&datetime..log
,reportLog3 = &LOGhome\Disk_Daily_Reporting_&datetime..log
,reportLog4 = &LOGhome\System_Daily_Reporting_&datetime..log
,emailto = email.address@company.com
);