Fetch from database with modified names?

For questions regarding programming in the EViews programming language.

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

chester
Posts: 44
Joined: Thu May 12, 2016 11:14 am

Fetch from database with modified names?

Postby chester » Tue Nov 01, 2016 9:12 am

How do I fetch from an EViews database and rename the series before it goes into my workfile? I would like to append a "_01" to every series before it gets fetched.

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

Re: Fetch from database with modified names?

Postby EViews Gareth » Tue Nov 01, 2016 9:46 am

Code: Select all

fetch(s=_01)

chester
Posts: 44
Joined: Thu May 12, 2016 11:14 am

Re: Fetch from database with modified names?

Postby chester » Tue Nov 01, 2016 10:04 am

My understanding is that the 's' argument is for series that have a common suffix already appended to them in the database. I'd like to pretty much concatenate a string to each series name right before the fetch happens.

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

Re: Fetch from database with modified names?

Postby EViews Gareth » Tue Nov 01, 2016 10:45 am

Ah, you're right.

You'll have to rename them after fetching.

chester
Posts: 44
Joined: Thu May 12, 2016 11:14 am

Re: Fetch from database with modified names?

Postby chester » Tue Nov 01, 2016 11:23 am

Alright, thanks.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests