Create a new database.
Syntax
dbcreate(options) [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” for additional discussion.
Options
type=arg, t=arg | Specify the database type: (see table below). The default is to create an EViews 7 database. |
The following table summaries the various database formats, along with the corresponding “type=” keywords:
| |
Aremos-TSD x | “a”, “aremos”, “tsd” |
DRIBase x | “b” “dribase” |
DRIPro Link x | “dripro” |
DRI DDS | “dds” |
EViews | “e”, “evdb” |
EViews 6 compatible | “eviews6” |
FAME | “f”, “fame” |
GiveWin/PcGive | “g”, “give” |
RATS 4.x | “r”, “rats” |
RATS Portable / TROLL | “l”, “trl” |
TSP Portable | “t”, “tsp” |
DRIBase and FAME databases are not supported in EViews Standard Edition.
The following options may be required when connecting to a remote server:
s=server_id, server=server_id | Server name |
u=user, username=user | Username |
p=pwd, password=pwd | Password |
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 or
db.
Cross-references
See
“EViews Databases” for a discussion of EViews databases.