Search found 13 matches

by BT454
Wed Jan 09, 2019 8:46 am
Forum: Programming
Topic: edit/override of identity
Replies: 0
Views: 72

edit/override of identity

Hello, I have a short program that compiles and solves a model for energy prices. It forecasts a real price, and then inflates it using a GDP deflator to create a nominal price. I would like to make adjustments to the nominal price (identity) directly using the "edit/override" function. Is...
by BT454
Tue Dec 18, 2018 2:25 pm
Forum: Programming
Topic: avoid "divide by zero" prg stop
Replies: 1
Views: 80

avoid "divide by zero" prg stop

Hi all,
I'm running a job that has many loops and nested loops where I am dividing by zero. How can I allow for the prg to finish without stopping when encountering the divide by zero?
Thanks,
Bob
by BT454
Mon Nov 12, 2018 9:06 am
Forum: Programming
Topic: weekly smpl
Replies: 1
Views: 333

weekly smpl

What is the proper syntax when setting smpl using weekly data?
Is it 4 digit year, character "w", then 2 digit week?
Thanks,
Bob
by BT454
Mon Oct 29, 2018 8:15 am
Forum: Programming
Topic: sum of all items in a string
Replies: 1
Views: 616

sum of all items in a string

Good morning,
Is it possible to code a function that creates a series equal to the sums of all items in a string?
i.e.
if %test = "series1 series2 series3 series4", is there a code so that series x may equal the sum of the contents of %test?
Thanks,
Bob
by BT454
Thu Oct 18, 2018 10:54 am
Forum: Programming
Topic: @replace question
Replies: 2
Views: 2036

Re: @replace question

That worked. Thanks!
by BT454
Thu Oct 18, 2018 7:31 am
Forum: Programming
Topic: @replace question
Replies: 2
Views: 2036

@replace question

Hi all, I have a long list of series in a work file. The series names are set up as a merger of concept and geography i.e. priceus, pricecan. I'd like to create a string of all the series, and remove the common concept characters from each name in the string. I'm attempting to use the @replace comma...
by BT454
Tue Oct 02, 2018 10:59 am
Forum: Programming
Topic: importattr command
Replies: 7
Views: 894

Re: importattr command

Sorry for the false alarm. I figured out a workaround by clearing all labels before importing the new ones. And there was some confusion on my end as I didn't realize "description" was an existing field for labels/attributes. I had imported an attribute field titled attribute, without know...
by BT454
Tue Oct 02, 2018 10:50 am
Forum: Programming
Topic: importattr command
Replies: 7
Views: 894

Re: importattr command

Thank you very much, Steve.
I wasn't viewing the series correctly to see the label. Once I changed that, it worked.
Do you know if there is a way to select just one attribute out of many to be cleared, for each series (using a similar loop as you described above)?
Thanks,
Bob
by BT454
Tue Oct 02, 2018 8:00 am
Forum: Programming
Topic: importattr command
Replies: 7
Views: 894

Re: importattr command

That worked! Could you instruct me on how to remove the already existing "description" attribute from each series?
Thanks again!
Bob
by BT454
Tue Oct 02, 2018 7:57 am
Forum: Programming
Topic: importattr command
Replies: 7
Views: 894

Re: importattr command

Thanks, Steve.
I'm running the same command and it's not working...I've using eviews 10 (I've tried it in both 32 and 64 bit versions). Is there something I'm missing?
Thanks,
Bob
by BT454
Tue Oct 02, 2018 5:44 am
Forum: Programming
Topic: importattr command
Replies: 7
Views: 894

importattr command

Hi all, I'm attempting to assign various attribute fields to several series in a data job. I can successfully import the attribute fields into my workfile as series using this command: pageload(page=attributes) c:\warem32\cdb_attr.xlsx range="annual!b1:mw20" byrow colhead=0 names=("na...
by BT454
Thu Jul 12, 2018 2:18 pm
Forum: General Information and Tips and Tricks
Topic: Storing data of same name/different frequencies
Replies: 1
Views: 893

Storing data of same name/different frequencies

Hi all, I'm using Eviews 9. I'm attempting to store data series of the same name but different frequencies into an edb, as part of a larger .prg (i.e. GDP (annual) and GDP (monthly) the same database using the store command). Is there a way to do this without overwriting one series with the same nam...
by BT454
Wed Aug 02, 2017 6:17 pm
Forum: Programming
Topic: monthly frequency data manipulation code
Replies: 1
Views: 505

monthly frequency data manipulation code

Hi, I need to be able to write a piece of code to transform series x (in monthly frequency) and create a series that is x/(days in period), over the span of several years. So for instance: Frequency is monthly smpl 1997 2040 J: x/31 F: x/28 M: x/31 so on and so forth, for all monthly data points thr...

Go to advanced search