Page 1 of 1

Date Format

Posted: Mon Jan 21, 2019 2:38 am
by GFXFTS
Hello,

I would like to write data from a workfile to a txt file with such a command for example:

write(t=txt,dates,nonames) C:\SENN\Models\Artificial\MLP\DATA\Data.txt YAR1LIN

When I open the .txt file the date format looks like this: "2/01/1970"

However, I would need such a format 1970-01-02 without the quotation marks.

Is that possible by chance?

Thanks a lot,

Guenter

Re: Date Format

Posted: Mon Jan 21, 2019 8:34 am
by EViews Gareth
Create an alpha series in your workfile with the date expressed however you want. Then save the workfile including that alpha series.

Re: Date Format

Posted: Mon Jan 21, 2019 8:46 am
by GFXFTS
Hi Gareth, That worked. It still saves it with the quotations marks though: "1970-01-05". Any chance to get rid of those as well? Thanks a lot, Guenter

Re: Date Format

Posted: Mon Jan 21, 2019 10:13 am
by EViews Gareth
Try using wfsave rather than write.

Re: Date Format

Posted: Mon Jan 21, 2019 12:32 pm
by GFXFTS
Hi Gareth, That worked but now I can't get rid of the first row :-( Best, Günter
dateid01 x y yar1lin yar1nonlin
1970-01-02 0 0 0 0
1970-01-05 0.11613408655140802 0.13072153426672658 0.13072153426672658

Re: Date Format

Posted: Mon Jan 21, 2019 1:12 pm
by EViews Gareth
There’s a nonames option.

Re: Date Format

Posted: Mon Jan 21, 2019 1:52 pm
by GFXFTS
Tried that one as well but didn't seem to work: wfsave(type=text,nonames) artificial_undated6.txt . I have attached the files. Thanks a lot, Günter

Re: Date Format

Posted: Mon Jan 21, 2019 6:00 pm
by EViews Gareth

Code: Select all

wfsave(type=text) artificial_undated6.txt nonames

Re: Date Format

Posted: Tue Jan 22, 2019 4:02 am
by GFXFTS
Brilliant. That worked. Thank you very much. Best, Günter

Re: Date Format

Posted: Tue Jun 22, 2021 4:50 am
by mmiller2
Would you mind updating the documentation to specify that nonames must be supplied in the argument list to pagesave rather than as a parenthetical option? The other approach would be to fix pagesave to work as described in the documentation, but that would undoubtedly break a lot of EViews programs out there. Is it possible to make it so that nonames can be specified as BOTH a parenthetical option or an (undocumented) argument in the list - for backwards compatibility?

http://www.eviews.com/help/helpintro.ht ... esave.html

Re: Date Format

Posted: Wed Jul 20, 2022 4:17 am
by jibe
Please correct documentation for pagesave command so that nonames option appears after filename not in the parentheses.
I just wasted hours puzzling over this until I came across this post from June 2021! Thanks

Re: Date Format

Posted: Thu Jul 21, 2022 3:25 pm
by EViews Steve
Actually, we made this change in EViews 12 so that you could specify the NONAMES argument as an option instead.

But it turns out there was a bug in EViews 12 where if you didn't specify any attributes to be exported at the same time, the NONAMES option was being ignored. This will be fixed in the next 12 patch.

We'll make a note in the documentation that the NONAMES option only works for EViews 12 and newer. Older versions will require the NONAMES argument.

Re: Date Format

Posted: Fri Jul 22, 2022 8:05 am
by jibe
Thanks.