Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save report as dbf in OEM format in a macro 1

Status
Not open for further replies.

lampekap

Technical User
Aug 2, 2004
2
NL
Hi,

I´m trying to safe an impromptu report as a dBase (dbf) file in a macro.
This works fine, except for the following:
When I save a report manually as a dBase file I have the option to convert the ANSI format to the OEM format.

I´ve tried the help files and searched the forum, but I can´t find a way to do this in a macro.

Any help is very welcome.

Regards,

Martijn.
 
Martijn,

I don't see anything about an option to do this via macro, either in the help files or at the Cognos support site. I would try the export with some additional option calls at the end, just to see if there is an undocumented ability to do this. Try adding an extra ",0" or ",1" (no quotes) at the end of the command as see if they do anything.

Regards,

Dave Griffin


The Decision Support Group
Reporting Consulting with Cognos BI Tools
"Magic with Data"
[pc2]
Want good answers? Read FAQ401-2487 first!
 
Thanks Dave!

It works!

When I use:
ObjImpRep.ExportdBase ExportDir & Filename & ".dbf" , 1
instead of
ObjImpRep.ExportdBase ExportDir & Filename & ".dbf"

It saves my report in a dbf (dBase format) AND converts the ANSI format in the OEM format.

Regards,

Martijn.
 
Imagine, an undocumented Cognos "feature". I'm shocked. Good guess griffindm.

Pain is stress leaving the body.

DoubleD [bigcheeks]
 
Thanks DoubleD. I've seen this before with other API calls and thought it might do the trick on this issue.

Dave G.


The Decision Support Group
Reporting Consulting with Cognos BI Tools
"Magic with Data"
[pc2]
Want good answers? Read FAQ401-2487 first!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top