Close specifics

For questions regarding programming in the EViews programming language.

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

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

Close specifics

Postby paues » Tue Oct 09, 2012 4:08 am

I have two windows open: one Aremos Databank and one workfile, both named akudb. The command

Code: Select all

close akudb
closes the workfile regardless of which of them is selected. Can one add further specifications for what should be closed?

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

Re: Close specifics

Postby paues » Fri Oct 12, 2012 7:50 am

This post seems to have been forgotten. Help would be much appreciated.

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

Re: Close specifics

Postby EViews Gareth » Fri Oct 12, 2012 8:13 am

Did you try:

Code: Select all

close akudb.bnk

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

Re: Close specifics

Postby paues » Tue Oct 16, 2012 8:03 am

Yes, that works :-) But that only solves the problem in the case where the program knows what the databank's file name is. So, my question still stands unanswered, can one add further specifications for what should be closed? A negative answered would do just fine. I merely want to know if it is possible. (And if it is, how it would be done.)

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

Re: Close specifics

Postby EViews Gareth » Tue Oct 16, 2012 8:06 am

I don't understand what you're asking. Yes further specifications can be added to the command - if you give the file type of the file you wish to close, then EViews will close that file rather than a file with another file type.

If you don't know the name of the thing you're trying to close, then EViews is unable to close it.

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

Re: Close specifics

Postby paues » Tue Oct 16, 2012 8:11 am

What I mean is that the databank (or for that matter the workfile) could have been opened with an alias. Ideally, I picture that I would be able to say that I want to close the database with the alias akudb, as opposed to the workfile with the alias akudb.

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

Re: Close specifics

Postby EViews Gareth » Tue Oct 16, 2012 8:29 am

Workfiles cannot have aliases. If your database has the alias "akudb", then closing that database can be achieved by the command:

Code: Select all

close akudb.edb

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

Re: Close specifics

Postby paues » Tue Oct 16, 2012 8:35 am

Thank you! That answers my question.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest