Saving group to excel file

For questions regarding programming in the EViews programming language.

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

moll
Posts: 2
Joined: Wed Oct 04, 2023 8:20 am

Saving group to excel file

Postby moll » Wed Oct 04, 2023 10:16 am

Im trying to save a group to an excel file inside of a loop. programmatically, it is not allowing me to save to a file at all. my inner loop looks something like this:

Code: Select all

import(mode=o) my_file.xlsx range=Sheet1 colhead=1 na="#N/A" @id @date(ds) @smpl @all
group g *
for !i=1 to g.@count
%name = g.@seriesname(!i)
series {%name}_new = {%name}*100
next
group g_new *_new

wfsave (type=excelxml) B:\test_file.xlsx @keep g_new

i get the error:
Unable to open file C:\(type=excelxml).wf1.
My workfile is not even located in my C drive...

i have tried using the pagesave function as well but to no avail. i can save manually through the drop downs, but that doesnt work for my use case.

any help is greatly appreciated!

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

Re: Saving group to excel file

Postby EViews Gareth » Wed Oct 04, 2023 10:48 am

You have a space between the wfsave command and its options.
Follow us on Twitter @IHSEViews

moll
Posts: 2
Joined: Wed Oct 04, 2023 8:20 am

Re: Saving group to excel file

Postby moll » Wed Oct 04, 2023 10:59 am

wow.. silly mistake... thanks!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 29 guests