Search found 12295 matches

by EViews Gareth
Fri Oct 18, 2019 12:26 pm
Forum: Data Manipulation
Topic: fetching from db for sample and copying a string
Replies: 7
Views: 283

Re: fetching from db for sample and copying a string

It is quite rare to want to mix fetched data with local data in-place.

Most people prefer to keep things separate.
by EViews Gareth
Fri Oct 18, 2019 11:42 am
Forum: Data Manipulation
Topic: fetching from db for sample and copying a string
Replies: 7
Views: 283

Re: fetching from db for sample and copying a string

Sorry, yes, I meant cannot

Code: Select all

fetch(p=temp) stringnewmac
smpl @first 2019q2
stringnewmac = tempstringnewmac
by EViews Gareth
Fri Oct 18, 2019 8:42 am
Forum: Data Manipulation
Topic: fetching from db for sample and copying a string
Replies: 7
Views: 283

Re: fetching from db for sample and copying a string

You can have multiple objects listed in the copy command.

Fetch into the entire workfile range, then assign into a new series only the values you want.
by EViews Gareth
Fri Oct 18, 2019 7:54 am
Forum: Data Manipulation
Topic: fetching from db for sample and copying a string
Replies: 7
Views: 283

Re: fetching from db for sample and copying a string

For the first one, I'm going to assume you want to copy the contents of the string, not the string itself. In which case the code you provided will work just fine.


Fetch always fetches to the entire workfile range.
by EViews Gareth
Tue Oct 15, 2019 12:47 pm
Forum: General Information and Tips and Tricks
Topic: workflow tips and sorting WF objects
Replies: 4
Views: 251

Re: workflow tips and sorting WF objects

Yes, although if the programs are somewhat generic, they also offer the ability to (more easily) pass on options and arguments.
by EViews Gareth
Tue Oct 15, 2019 12:15 pm
Forum: General Information and Tips and Tricks
Topic: workflow tips and sorting WF objects
Replies: 4
Views: 251

Re: workflow tips and sorting WF objects

For the general workflow question, it might be that creating your own add-ins is the best way to go, so you can just click or type a simple command to execute each step one at a time.
by EViews Gareth
Tue Oct 15, 2019 12:14 pm
Forum: General Information and Tips and Tricks
Topic: workflow tips and sorting WF objects
Replies: 4
Views: 251

Re: workflow tips and sorting WF objects

Subroutines, like for loops and if statements, cannot be used in the command line, they are programming environment features only.

You can switch the workfile to the details view and then sort based on any attribute, including type.
by EViews Gareth
Sun Oct 13, 2019 3:18 pm
Forum: Programming
Topic: Can I specify data details when I save them in .CSV format?
Replies: 2
Views: 176

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

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 delimit...
by EViews Gareth
Fri Oct 11, 2019 8:19 pm
Forum: Programming
Topic: formating graph lines
Replies: 3
Views: 136

Re: formating graph lines

Code: Select all

graph imp_fr lb_f f1_impulse_f ub_f

That line creates a graph.
by EViews Gareth
Fri Oct 11, 2019 3:32 pm
Forum: Programming
Topic: Model simulation and Excel Program
Replies: 1
Views: 75

Re: Model simulation and Excel Program

If you're familiar with VBA in Excel and a little COM automation it is fairly straight forward. We have a whitepaper that will help:
http://eviews.com/download/whitepapers/ ... mation.pdf


You could probably also ask the World Bank directly.
by EViews Gareth
Fri Oct 11, 2019 7:38 am
Forum: Programming
Topic: formating graph lines
Replies: 3
Views: 136

Re: formating graph lines

Delete the existing graph before creating the new one.
by EViews Gareth
Wed Oct 09, 2019 8:07 am
Forum: Programming
Topic: Error notification
Replies: 1
Views: 107

Re: Error notification

You can use the @uiprompt command to pause the program and issue a message to the user. Or you can use logmsg . If you want to get really fancy with stuff outside of EViews, you could use logmsg to write a text file to disk containing information on how the process went, then have an external progra...
by EViews Gareth
Wed Oct 09, 2019 8:04 am
Forum: Programming
Topic: Trying to run iterative regressions on a subsample of series
Replies: 1
Views: 86

Re: Trying to run iterative regressions on a subsample of series

http://eviews.com/Learning/programming_a.html
Slide 40.

You cannot use an if statement on a series, you must use a smpl if
by EViews Gareth
Mon Oct 07, 2019 1:32 pm
Forum: Programming
Topic: FRB\US model
Replies: 1
Views: 87

Re: FRB\US model

Nothing that springs to mind, but we're not experts on FRB/US.
by EViews Gareth
Thu Oct 03, 2019 4:03 pm
Forum: Models
Topic: problem with scenario
Replies: 3
Views: 433

Re: problem with scenario

We'd need to see the workfile

Go to advanced search