Impromptu experts
I am running a cognos script (see below) to extract and save data in ascii csv format. Unfortunately (for me) this format will only save date fields in the ISO format - YYYY-MM-DD.
I need to save the dates in the format DD/MM/YY
Is there a script command that will do this ?
Thanks
Script -:
Sub Main ()
Dim objImpApp As Object
Dim objImpRep As Object
Dim textfile As String
Dim targetfile As String
Dim X as Integer
Dim aline as String
Set objImpApp = CreateObject("CognosImpromptu.Application")
objImpApp.OpenCatalog "D:\Impromptu\VSD\Catalogs\SL5C_Sales Orders.cat", "Creator"
Set objImpRep = objImpApp.OpenReport("D:\Impromptu\VSD\Reports\Data 2 GBD\SO_Orders_4_GBD_143.imr")
objImpRep.ExportASCII "V:\SO_Orders_4_GBD_143.csv", False
objImpRep.CloseReport
objImpApp.Quit
Set objImpRep = Nothing
Set objImpApp = Nothing
End Sub
I am running a cognos script (see below) to extract and save data in ascii csv format. Unfortunately (for me) this format will only save date fields in the ISO format - YYYY-MM-DD.
I need to save the dates in the format DD/MM/YY
Is there a script command that will do this ?
Thanks
Script -:
Sub Main ()
Dim objImpApp As Object
Dim objImpRep As Object
Dim textfile As String
Dim targetfile As String
Dim X as Integer
Dim aline as String
Set objImpApp = CreateObject("CognosImpromptu.Application")
objImpApp.OpenCatalog "D:\Impromptu\VSD\Catalogs\SL5C_Sales Orders.cat", "Creator"
Set objImpRep = objImpApp.OpenReport("D:\Impromptu\VSD\Reports\Data 2 GBD\SO_Orders_4_GBD_143.imr")
objImpRep.ExportASCII "V:\SO_Orders_4_GBD_143.csv", False
objImpRep.CloseReport
objImpApp.Quit
Set objImpRep = Nothing
Set objImpApp = Nothing
End Sub