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 5: MethodsSave MethodSyntaxOptions.SaveApplies ToOptionsDescriptionSaves the changes to the Options object.DiscussionThe new information on the Options object is updated in the <strong>Scheduler</strong>database.Return TypeNothingExampleThis example sets up the user email address and saves the Optionsobject.Sub Main()Dim objSchedApp As ObjectDim objOptions As ObjectSet objSchedApp = CreateObject("Cognosbatcher.Application")'set up a reference to the Options objectSet objOptions = objSchedApp.OptionsobjOptions.UserEmail = "jdoe@somewhere.com"'the Save method commits any alterations made to the Options'properties; if Save is not used, the changes will be lost when'the reference to the <strong>Scheduler</strong> Application object is destroyed,'or when <strong>Scheduler</strong> is closedobjOptions.SaveSet objOptions = NothingSet objSchedApp = NothingEnd Sub34 <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!