I have an Impromptu macro that runs; however, I am going to need to incorporate running it into my job scheduler. The first step is.... How can I run this macro from the command line? I tried what the documentation suggested, but it didn't work.
Here is the macro:
Sub Main ()
Dim objImpApp as object
Dim objImpRep as object
Set objImpApp = Createobject
"CognosImpromptu.Application"
ObjImpApp.OpenCatalog "k:\Catalogs 7.0
\DMSU_data2.cat", "Developer"
Set objImpRep = objImpApp.OpenReport ("k:\DMS CUSTOM
REPORTING\PO SUMMARY REPORT.imr"
objImpRep.RetrieveAll
objImpRep.Print
objImpRep.CloseReport
objImpApp.Quit
Set objImpRep = Nothing
Set objImpApp = Nothing
End Sub
THANKS!!!!
Here is the macro:
Sub Main ()
Dim objImpApp as object
Dim objImpRep as object
Set objImpApp = Createobject
"CognosImpromptu.Application"
ObjImpApp.OpenCatalog "k:\Catalogs 7.0
\DMSU_data2.cat", "Developer"
Set objImpRep = objImpApp.OpenReport ("k:\DMS CUSTOM
REPORTING\PO SUMMARY REPORT.imr"
objImpRep.RetrieveAll
objImpRep.Print
objImpRep.CloseReport
objImpApp.Quit
Set objImpRep = Nothing
Set objImpApp = Nothing
End Sub
THANKS!!!!