Page 1 of 1

Applying wrong naming restrictions on databases

Posted: Fri May 18, 2012 3:48 am
by paues
I have an Aremos databank called imfig containing two quarterly series: dkim.q and 28im.q. I thought line 3 and 4 in the code below would be handled identically. But EViews seems to apply its own naming restrictions (specifically not allowing object names to begin with numbers) also on the Aremos database, which does not have the same restrictions, and thus returns an error on line 4.

Code: Select all

dbopen C:\Temp\ImFig.bnk wfcreate q 1980 2011 series tmp1=dkim series tmp2=28im

Re: Applying wrong naming restrictions on databases

Posted: Fri May 18, 2012 8:48 am
by EViews Chris
You're currently fetching the series by using the series in an expression and letting EViews automatically search through databases when it can't already find a series with that name in the workfile. This approach does seem to come up against EViews name restrictions.

If you explicitly fetch the series from the database, you should be able to get around this restriction. For the particular example you sent, you should just be able to change to using the copy command:

Code: Select all

dbopen C:\Temp\ImFig.bnk wfcreate q 1980 2011 copy ::dkim tmp1 copy ::28im tmp2
The fetch command could also be used

Code: Select all

dbopen C:\Temp\ImFig.bnk wfcreate q 1980 2011 fetch dkim 28im
in which case EViews would automatically make up a legal EViews name ("_28im" in your example).

Re: Applying wrong naming restrictions on databases

Posted: Mon May 21, 2012 12:36 am
by paues
Thank you. However, I already know how to fetch the series. I was merely notifying you that this approach, as you said, "come[s] up against EViews name restrictions". IMHO, it should not which is why I posted in "Bug Reports".

And please allow me to excuse myself. I see now that I did not pay enough attention writing my code. What I intended to write was:

Code: Select all

dbopen C:\Temp\ImFig.bnk wfcreate q 1980 2011 series tmp1=::imfig::dkim series tmp2=::imfig::28im