11.07.2015 Views

Automate Scheduler Using Macros

Automate Scheduler Using Macros

Automate Scheduler Using Macros

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 6: PropertiesEXEname PropertySyntaxApplication.EXEnameApplies ToApplicationDescriptionReturns the name of the <strong>Scheduler</strong> OLE server executable.DiscussionUse this property to determine the name of the <strong>Scheduler</strong> OLE serverexecutable.TypeStringAccessReadExampleThis example lists the names of all tasks in <strong>Scheduler</strong> and the name ofthe accessed <strong>Scheduler</strong> application.Dim SchApp as ObjectDim SchObj as ObjectSub Main()Set SchApp = CreateObject("CognosBatcher.Application")For i = 1 to SchApp.Schedules.CountSet SchObj = SchApp.Schedules.Item(i)MsgBox SchObj.ScheduleNameNext iMsgBox SchApp.EXEnameSet SchApp = NothingSet SchObj = NothingEnd Sub70 <strong>Automate</strong> <strong>Scheduler</strong> <strong>Using</strong> <strong>Macros</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!