Page 1 of 1

wfopen: Is rformat broken (v. 6)?

Posted: Thu May 06, 2010 10:16 am
by ericfruits
I tried using a WFOPEN command similar to the command in the help file:

wfopen(type=raw,rectype=fixed) c:\data.txt rformat=(GDP 1-2 INV 3 CONS 6-9)

However I receive the following error message:

Syntax error: unexpected character '(' in rformat specification

Consequently, the rformat specification cannot work.

Thanks.

Re: wfopen: Is rformat broken (v. 6)?

Posted: Thu May 06, 2010 10:50 am
by EViews Gareth
Bug in the documentation. Replace the parenthesis with quotes:

Code: Select all

wfopen(type=raw,rectype=fixed) c:\data.txt rformat="GDP 1-2 INV 3 CONS 6-9"

We'll update EViews 7 so that it accepts parenthesis as well.

Re: wfopen: Is rformat broken (v. 6)?

Posted: Thu May 06, 2010 12:57 pm
by ericfruits
Thanks for the quick and useful response!

Re: wfopen: Is rformat broken (v. 6)?

Posted: Thu Jan 02, 2014 8:16 am
by zezza
I noticed today that the bug in the documentation is still there... rformat will not accept brackets.
It works fine with the suggestion from Gareth

Re: wfopen: Is rformat broken (v. 6)?

Posted: Mon Jan 06, 2014 12:25 pm
by EViews Glenn
Thanks. I put this on the list of things to take a look at. Sorry.