Naming restrictions for series?

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

paues
Posts: 218
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

Naming restrictions for series?

Postby paues » Fri Apr 15, 2011 7:42 am

I am writing a program that imports series (*) from .tsd files made in Aremos to EViews 7, creates manipulated series (*Mp) and exports the manipulated series back to .tsd format (to imported back to Aremos). But I get into trouble when the series names in the .tsd file are illegal according to EViews naming restrictions. So, I would like to know one of the following (or ideally both):

1. What are the restrictions to series names in EViews? (Knowing this I could deal with illegal names in Aremos before exporting to .tsd format.)

2. Is there any way to deal with series, i.e. named 123test, so that the manipulated series would still be called 123testMp when exported back to the .tsd file? (I suspect the answer could involve aliases, the fetch command and its notifyillegal option.)

Best,
Fredrik

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

Re: Naming restrictions for series?

Postby EViews Gareth » Fri Apr 15, 2011 8:26 am

I'll let someone more knowledgeable in this area comment more fully, but in answer to your specific questions:

1) Legal names must be less than 24 characters, must start with either a letter or a "_", and can contain only letters, numbers, "_" and "$".

2. Not 100% certain I understand the question, but if you the copy command to copy to a tsd file, you can support mass renaming:

Code: Select all

copy u* mytsd:: u*mp

paues
Posts: 218
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

Re: Naming restrictions for series?

Postby paues » Fri Apr 15, 2011 8:41 am

Thank you! The answer to (1) was precisely what I needed.

Please let me try to explain (2) more precisely:

A .tsd file contains a few series. They could be named anything but one hypothetical batch of series could e.g. be the two series 123test and 456test. My EViews program would

a. import these series from the .tsd file,
b. create new series with values depending on the values of the original series (e.g. square the value of each period) and then
c. export the created series to a new .tsd file.

However, it is important that the names of the series are not altered in any other way than that the suffix Mp is added to the series names. Thus, in the new .tsd file 123test would be saved as 123testMp and 456test as 456testMp.

Best,
Fredrik


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests