wfopen: cannot get the "types=" option to work with xlsx

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

etienne
Posts: 19
Joined: Wed Jun 12, 2013 10:32 am

wfopen: cannot get the "types=" option to work with xlsx

Postby etienne » Tue Oct 22, 2013 12:22 pm

Hi,

I cannot get the correct syntax to use the 'types=' option of the wfopen command when opening an xlsx file, in order to force the type of a series (character, numeric, date, automatic). It always returns a syntax error (invalid format string), though I've tried many syntax variations (quoting or not, with/without parentheses for a single series, position of the option etc.). Is this option really implemented for xlsx files? If so, could you please show me an example command that would work?

An example of commands that returns such an error:

Code: Select all

wfopen "c:\Data\test.xlsx" range=a1:a4 nonames types=a wfopen "c:\Data\test.xlsx" range=a1:a4 nonames types="a" wfopen "c:\Data\test.xlsx" range=a1:a4 nonames types=(a) wfopen "c:\Data\test.xlsx" range=a1:a4 nonames types=("a")
I'm using EViews 8 (June 13, 2013 build).

Best regards,

Étienne

dagfinnrime
Posts: 54
Joined: Sat Oct 11, 2008 9:37 am
Location: Oslo
Contact:

Re: wfopen: cannot get the "types=" option to work with xlsx

Postby dagfinnrime » Fri Oct 31, 2014 6:14 am

Hi,
I have been struggling with the same. Try capital letters for the type-codes.
Like

Code: Select all

wfopen "c:\Data\test.xlsx" range=a1:a4 nonames types=(A)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests