Page 1 of 1

Close specifics

Posted: Tue Oct 09, 2012 4:08 am
by paues
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?

Re: Close specifics

Posted: Fri Oct 12, 2012 7:50 am
by paues
This post seems to have been forgotten. Help would be much appreciated.

Re: Close specifics

Posted: Fri Oct 12, 2012 8:13 am
by EViews Gareth
Did you try:

Code: Select all

close akudb.bnk

Re: Close specifics

Posted: Tue Oct 16, 2012 8:03 am
by paues
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.)

Re: Close specifics

Posted: Tue Oct 16, 2012 8:06 am
by EViews Gareth
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.

Re: Close specifics

Posted: Tue Oct 16, 2012 8:11 am
by paues
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.

Re: Close specifics

Posted: Tue Oct 16, 2012 8:29 am
by EViews Gareth
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

Re: Close specifics

Posted: Tue Oct 16, 2012 8:35 am
by paues
Thank you! That answers my question.