Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Eviews5 / EViews5 / Docs / EViews 5 Command Ref.pdf
Скачиваний:
47
Добавлен:
23.03.2015
Размер:
5.23 Mб
Скачать

264—Appendix B. Command Reference

Follow the db command by the name of the database to be opened or to be created (if it does not already exist). You may include a path name to work with a database not in the default path.

You may use the “as” keyword to provide an optional shorthand_name or short text label which may be used to refer to the database in commands and programs. If you leave this field blank, a default shorthand_name will be assigned automatically. See “Database Shorthands” on page 263 of the User’s Guide for additional discussion.

Options

See dbopen (p. 266) for a list of available options for working with foreign format databases.

Examples

db findat

opens the database FINDAT in the default path and makes it the default database from which to store and fetch objects. If the database FINDAT does not already exist, an empty database named FINDAT will be created and opened.

Cross-references

See Chapter 10, “EViews Databases”, on page 259 of the User’s Guide for a discussion of EViews databases.

See also dbcreate (p. 265) and dbopen (p. 266).

dbcopy

Command

 

 

Make a copy of an existing database.

Syntax

Command: dbcopy [path\]source_name [path\]copy_name

Follow the dbcopy command by the name of the existing database and a name for the copy. You should include a path name to copy from or to a database that is not in the default directory. All files associated with the database will be copied.

Examples

dbcopy usdat c:\backup\usdat

makes a copy of all files associated with the database USDAT in the default path and stores it in the C:\BACKUP directory under the name “USDAT”.

dbcreate—265

Cross-references

See Chapter 10, “EViews Databases”, on page 259 of the User’s Guide for a discussion of EViews databases.

See also dbrename (p. 269) and dbdelete (p. 266).

dbcreate Command

Create a new database.

Syntax

Command: dbcreate [path\]db_name [as shorthand_name]

Follow the dbcreate keyword by a name for the new database. You may include a path name to create a database not in the default directory. The new database will become the default database.

You may use the “as” keyword to provide an optional shorthand_name or a short text label which may be used to refer to the open database in commands and programs. If you leave this field blank, a default shorthand_name will be assigned automatically. See “Database Shorthands” on page 263 of the User’s Guide for additional discussion.

Examples

dbcreate macrodat

creates a new database named MACRODAT in the default path, and makes it the default database from which to store and fetch objects. This command will issue an error message if a database named MACRODAT already exists. To open an existing database, use dbopen (p. 266) or db (p. 263).

Cross-references

See Chapter 10, “EViews Databases”, on page 259 of the User’s Guide for a discussion of EViews databases.

See also db (p. 263) and dbopen (p. 266).

266—Appendix B. Command Reference

dbdelete Command

Delete an existing database (all files associated with the specified database).

Syntax

Command: dbdelete [path\]db_name

Follow the dbdelete keyword by the name of the database to be deleted. You may include a path name to delete a database not in the default path.

Examples

dbdelete c:\temp\testdat

deletes all files associated with the TESTDAT database in the specified directory.

Cross-references

See Chapter 10, “EViews Databases”, on page 259 of the User’s Guide for a discussion of EViews databases.

See also dbcopy (p. 264) and dbdelete (p. 266).

dbopen

Command

 

 

Open an existing database.

Syntax

 

Command:

dbopen(options) [path\]db_name [as shorthand_name]

Follow the dbopen keyword with the name of a database. You should include a path name to open a database not in the default path. The opened database will become the default database.

You may use the “as” keyword to provide an optional shorthand_name or a short text label which is used to refer to the open database in commands and programs. If you leave this field blank, a default shorthand_name will be assigned automatically. See “Database Shorthands” on page 263 of the User’s Guide for additional discussion.

By default, EViews will use the extension of the database file to determine type. For example, files with the extension “.EDB” will be opened as an EViews database, while files with the extension “.IN7” will be opened as a GiveWin database. You may use options to specify an explicit type.

dbpack—267

Options

type=arg, t=arg Specify the database type: AREMOS-TSD (“a”, “aremos”, “tsd”), DRIBase (“b”, “dribase”), EViews (“e”, “evdb”), FAME (“f”, “fame”), GiveWin/PcGive (“g”, “give”), Haver Analytics (“h”, “haver”), Rats Portable/ Troll (“l”, “trl”), RATS 4.x (“r”, “rats”), TSP portable (“t”, “tsp”), EcoWin (“ecowin”).

The following options may be required when connecting to a remote server:

s=server_ id,

Server name.

server=server_id

 

 

 

u=user,

Username.

username=user

 

 

 

p=pswd,

Password.

password=pswd

 

 

 

Examples

dbopen c:\data\us1

opens a database named US1 in the C:\DATA directory. The command:

dbopen us1

opens a database in the default path. If the specified database does not exist, EViews will issue an error message. You should use db (p. 263) or dbcreate (p. 265) to create a new database.

Cross-references

See Chapter 10, “EViews Databases”, on page 259 of the User’s Guide for a discussion of EViews databases.

See also db (p. 263) and dbcreate (p. 265).

dbpack

Command

 

 

Pack an existing database.

Syntax

Command: dbpack [path\]db_name

Соседние файлы в папке Docs