Can I specify data details when I save them in .CSV format?

For questions regarding programming in the EViews programming language.

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

Alfred123
Posts: 31
Joined: Fri Jul 19, 2019 8:00 pm

Can I specify data details when I save them in .CSV format?

Postby Alfred123 » Sun Oct 13, 2019 7:48 am

Dear all,

I need to save some series into CSV format.

First, I want to save all these series with specified decimal digits, such as 2 digits.

Furthermore, I want to specify the seperation symbol, I want to use " , " as the symbol, not the space.

How can I do it?

I don't find these options in "wfsave" or "pagesave".

Thank you!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: Can I specify data details when I save them in .CSV format?

Postby EViews Gareth » Sun Oct 13, 2019 3:18 pm

There isn't a way to specify the number format during save. You'd have to (tediously) create new series that are rounded to that number of decimal places using the @round function.

If you specify the file name to be saved as .csv and use the t=txt option, EViews will save using commas as the delimiter.

Alfred123
Posts: 31
Joined: Fri Jul 19, 2019 8:00 pm

Re: Can I specify data details when I save them in .CSV format?

Postby Alfred123 » Sun Oct 13, 2019 8:17 pm

There isn't a way to specify the number format during save. You'd have to (tediously) create new series that are rounded to that number of decimal places using the @round function.

If you specify the file name to be saved as .csv and use the t=txt option, EViews will save using commas as the delimiter.
Very helpful, thank you!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests