All Topics  
DBASE

 

   Email Print
   Bookmark   Link






 

DBASE



 
 
dBase II was the first widely used database management system
Database management system

A database management system is computer software that manages databases. DBMSes may use any of a variety of database models, such as the network model or relational model....
 (DBMS) for microcomputer
Microcomputer

A microcomputer is a computer with a microprocessor as its central processing unit. Another general characteristic of these computers is that they occupy physically small amounts of space when compared to mainframe computer and minicomputers....
s, published by Ashton-Tate
Ashton-Tate

Ashton-Tate was a United States based software company best known for developing the popular dBASE database application. Ashton-Tate grew from a small garage-based company to become a multinational corporation with software development centers spread across the United States and Europe....
 for CP/M
CP/M

CP/M is an operating system originally created for Intel 8080/Intel 8085 based microcomputers by Gary Kildall of Digital Research. Initially confined to single tasking on 8-bit processors and no more than 64 kilobytes of memory, later versions of CP/M added multi-user variations, and were migrated to 16-bit processors....
, and later on the Apple II, Apple Macintosh, UNIX
Unix

Unix is a computer operating system originally developed in 1969 by a group of American Telephone & Telegraph employees at Bell Labs, including Ken Thompson , Dennis Ritchie, Douglas McIlroy, and Joe Ossanna....
, VMS
OpenVMS

OpenVMS , previously known as VAX-11/VMS, VAX/VMS or VMS, is the name of a high-end computer server operating system that runs on the VAX and DEC Alpha families of computers, developed by Digital Equipment Corporation of Maynard, Massachusetts, Massachusetts , and most recently on Hewlett-Packard systems built around the In...
, and IBM PC
IBM PC

The IBM Personal Computer, commonly known as the IBM PC, is the original version and progenitor of the IBM PC compatible hardware platform ....
 under DOS
DOS

DOS, short for "Disk Operating System", is a shorthand term for several closely related operating systems that dominated the IBM PC compatible market between 1981 and 1995, or until about 2000 if one includes the partially DOS-based Microsoft Windows versions Windows 95, Windows 98, and Windows Me....
 where it and its successors dBase III and dBase IV (there was no dBase I) became one of the best-selling software titles for a number of years.






Discussion
Ask a question about 'DBASE'
Start a new discussion about 'DBASE'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Dbaseshot
dBase II was the first widely used database management system
Database management system

A database management system is computer software that manages databases. DBMSes may use any of a variety of database models, such as the network model or relational model....
 (DBMS) for microcomputer
Microcomputer

A microcomputer is a computer with a microprocessor as its central processing unit. Another general characteristic of these computers is that they occupy physically small amounts of space when compared to mainframe computer and minicomputers....
s, published by Ashton-Tate
Ashton-Tate

Ashton-Tate was a United States based software company best known for developing the popular dBASE database application. Ashton-Tate grew from a small garage-based company to become a multinational corporation with software development centers spread across the United States and Europe....
 for CP/M
CP/M

CP/M is an operating system originally created for Intel 8080/Intel 8085 based microcomputers by Gary Kildall of Digital Research. Initially confined to single tasking on 8-bit processors and no more than 64 kilobytes of memory, later versions of CP/M added multi-user variations, and were migrated to 16-bit processors....
, and later on the Apple II, Apple Macintosh, UNIX
Unix

Unix is a computer operating system originally developed in 1969 by a group of American Telephone & Telegraph employees at Bell Labs, including Ken Thompson , Dennis Ritchie, Douglas McIlroy, and Joe Ossanna....
, VMS
OpenVMS

OpenVMS , previously known as VAX-11/VMS, VAX/VMS or VMS, is the name of a high-end computer server operating system that runs on the VAX and DEC Alpha families of computers, developed by Digital Equipment Corporation of Maynard, Massachusetts, Massachusetts , and most recently on Hewlett-Packard systems built around the In...
, and IBM PC
IBM PC

The IBM Personal Computer, commonly known as the IBM PC, is the original version and progenitor of the IBM PC compatible hardware platform ....
 under DOS
DOS

DOS, short for "Disk Operating System", is a shorthand term for several closely related operating systems that dominated the IBM PC compatible market between 1981 and 1995, or until about 2000 if one includes the partially DOS-based Microsoft Windows versions Windows 95, Windows 98, and Windows Me....
 where it and its successors dBase III and dBase IV (there was no dBase I) became one of the best-selling software titles for a number of years. dBase was not successfully ported to Microsoft Windows
Microsoft Windows

Microsoft Windows is a series of software operating systems and graphical user interfaces produced by Microsoft. Microsoft first introduced an operating environment named Windows in November 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces ....
 for some time, and gradually lost market share to competitors such as Paradox, Clipper, FoxPro
FoxPro

has two meanings:* Visual FoxPro - an object-oriented programming language and RDBMS, published by Microsoft, for Microsoft Windows.* FoxPro 2 - a text-based procedural programming language and RDBMS, originally published by Fox Software and later by Microsoft, for MS-DOS, Microsoft Windows, Macintosh, and UNIX...
, and Microsoft Access
Microsoft Access

Microsoft Office Access, previously known as Microsoft Access, is a relational database management system from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and software development tools....
. Ashton-Tate was bought by Borland
Borland

Borland Software Corporation is a Computer software company headquartered in Austin, Texas. It was founded in 1983 by Niels Jensen, Ole Henriksen, Mogens Glad and Philippe Kahn....
 in 1991, and the rights to the dBase product line were sold in 1999 to the newly-formed In 2004, dBase Inc. changed its name to dataBased Intelligence, Inc.

Starting in the mid 1980s many other companies produced their own dialects or variations on the product and language. These included FoxPro (now Visual FoxPro
Visual FoxPro

Visual FoxPro is a data-centric object-oriented and Procedural programming programming language produced by Microsoft. It is derived from FoxPro 2 which was developed by Fox Software beginning in 1984....
), Arago (dbXL and Quicksilver), Force, dbFast, Clipper, Xbase++, FlagShip, Recital, CodeBase
Codebase

The term codebase, or code base is used in software development to mean the whole collection of source code used to build a particular application software or Software componentry....
, MultiBase and Harbour
Harbour compiler

Harbour is a modern, fast computer programming language. It is a Clipper -compatible compiler which is cross-platform, running on many operating systems ....
/xHarbour
XHarbour

xHarbour is a free multi-platform extended Clipper programming language compiler, offering multiple GT , including console drivers, GUIs , and Hybrid Console/GUIs, such as GTWvt, and GTWvw....
. Together these are informally referred to as xBase
XBase

xBase is the generic term for all programming languages that derive from the original dBASE programming language and database formats. These are sometimes informally known as dBASE "clones"....
.

dBase's underlying file format, the .dbf file, is widely used in many other applications needing a simple format to store structured data.

Recent history

dBase has evolved into a modern object oriented language that runs on 32 bit Windows. It can be used to build a wide variety of applications including web apps hosted on a Windows server, Windows rich client applications, and middleware applications. dBase can access most modern database engines via ODBC drivers.

dBase features an IDE with a Command Window and Navigator, a just in time compiler, a preprocessor, a virtual machine interpreter, a linker for creating dBase application .exe's, a freely available runtime engine, and numerous two-way GUI design tools including a Form Designer, Report Designer, Menu Designer, Label Designer, Datamodule Designer, SQL Query Designer, and Table Designer. Two-way Tools refers to the ability to switch back and forth between using a GUI design tool and the Source Code Editor. Other tools include a Source Code Editor, a Project Manager that simplifies building and deploying a dBase application, and an integrated Debugger. dBase features structured exception handling and has many built-in classes that can be subclassed via single inheritance. There are visual classes, data classes, and many other supporting classes. Visual classes include Form, SubForm, Notebook, Container, Entryfield, RadioButton, SpinBox, ComboBox, ListBox, PushButton, Image, Grid, ScrollBar, ActiveX, Report, ReportViewer, Text, TextLabel and many others. Database classes include Session, Database, Query, Rowset, Field, StoredProc and Datamodule classes. Other classes include File, String, Math, Array, Date, Exception, Object and others. dBase objects can be dynamically subclassed by adding new properties to them at runtime.

Origins

The original developer of dBase was C. Wayne Ratliff. In 1978, while working as a contractor at the Jet Propulsion Laboratory
Jet Propulsion Laboratory

Jet Propulsion Laboratory is a List of federally funded research and development centers and NASA field center located in the San Gabriel Valley area of Los Angeles County, California, California, United States....
, Ratliff wrote a database program he called "Vulcan" (after Mr. Spock of Star Trek
Star Trek

Star Trek is an American Science fiction on television entertainment series and media franchise. The Star Trek fictional universe created by Gene Roddenberry is the setting of six television series including the original 1966 Star Trek: The Original Series, in addition to ten feature films with Star Trek to be released on May 8,...
) to help him win the office football pool. Written for his kit-built IMSAI 8080 microcomputer running PTDOS, he based the program on JPLDIS
JPLDIS

The Jet Propulsion Laboratory Display Information System is a file management program written in Fortran.JPLDIS is important because it was the inspiration and precursor to dBASE, arguably one of the most influential Database management system programs for early microcomputers....
 (Jet Propulsion Laboratory Display Information System), a mainframe (Univac 1108) data base product developed by JPL's Jeb Long and Jack Hatfield
Jack Hatfield

John Gatenby "Jack" Hatfield was a competitive swimmer, who won medals for Great Britain in the early Olympic Games.Born in the Stokesley district of West Yorkshire, he went on to found a sporting goods store in Middlesbrough which continues business today....
. Long finished JPLDIS after Hatfield's departure from JPL.

According to Ratliff, the language in JPLDIS was a simple, command-driven language intended for interactive use on printing terminals. There is some evidence that JPLDIS was influenced by Tymshare Corporation's mainframe
Mainframe computer

Mainframes are computers used mainly by large organizations for critical applications, typically bulk data processing such as census, industry and consumer statistics, Enterprise Resource Planning, and financial transaction processing....
 database product called RETRIEVE.

In early 1980, George Tate, of Ashton-Tate, entered into a marketing agreement with Ratliff. Vulcan was renamed dBase II, and the software quickly became a huge success.

dBase programming language

After writing Vulcan for the IMSAI 8080
IMSAI 8080

The IMSAI 8080 was an early microcomputer released in late 1975, based on the Intel Corporation Intel 8080 and later Intel 8085 and S-100 bus. It was compatible with its main competitor, the earlier Altair 8800, by which it was inspired....
 and later porting it to CP/M and MS-DOS (as dBase), Ratliff added commands to accommodate the video screen interface as well as commands for improved control of flow (such as DO WHILE/ENDDO) and conditional logic (such as IF/ENDIF).

For handling data, dBase provided detailed procedural commands and functions to open and traverse records in data files (e.g., USE, SKIP, GO TOP, GO BOTTOM, and GO recno), manipulate field values (REPLACE and STORE), and manipulate text strings (e.g., STR and SUBSTR), numbers, and dates. Its ability to simultaneously open and manipulate multiple files containing related data led Ashton-Tate to label dBase a "relational database
Relational database

A relational database is a database that groups data using common attributes found in the data set. The resulting "clumps" of organized data are much easier for people to understand....
" although it did not meet the criteria defined by Dr. Edgar F. Codd
Edgar F. Codd

Edgar Frank "Ted" Codd was a United Kingdom computer science who, while working for International Business Machines, invented the relational model for database management, the theoretical basis for relational databases....
's relational model
Relational model

The relational model for database management is a database model based on first-order logic, first formulated and proposed in 1969 by Edgar F. Codd....
; it could more accurately be called an application development language and integrated navigational database management system that is influenced by relational concepts.

dBase used a runtime interpreter architecture, which allowed the user to execute commands by typing them in a command line "dot prompt." Upon typing a command or function and pressing the return key, the interpreter would immediately execute or evaluate it. Similarly, program scripts (text files with PRG extensions) ran in the interpreter (with the DO command), where each command and variable was evaluated at runtime. This made dBase programs quick and easy to write and test because programmers didn't have to first compile and link them before running them. (For other languages, these steps were tedious in the days of single- and double-digit megahertz CPUs.) The interpreter also handled automatically and dynamically all memory management (i.e., no preallocating memory and no hexadecimal notation), which more than any other feature made it possible for a business person with no programming experience to develop applications.

Conversely, the ease and simplicity of dBase presented a challenge as its users became more expert and as professional programmers were drawn to it. More complex and more critical applications demanded professional programming features for greater reliability and performance, as well as greater developer productivity.

Over time, Ashton-Tate's competitors introduced so-called clone products and compilers that introduced more robust programming features such as user-defined functions (UDFs) to supplement the built-in function set, scoped variables for writing routines and functions that were less likely to be affected by external processes, arrays for complex data handling, packaging features for delivering applications as executable files without external runtime interpreters, object-oriented syntax, and interfaces for accessing data in remote database management systems. Ashton-Tate also implemented many of these features with varying degrees of success. Ashton-Tate and its competitors also began to incorporate SQL
SQL

SQL is a database computer language designed for the retrieval and management of data in relational database management systems , database schema creation and modification, and database object access control management....
, the ANSI/ISO standard language for creating, modifying, and retrieving data stored in relational database management systems.

In the late 1980s, developer groups sought to create a dBase language standard (IEEE 1192). It was then that the language started being referred to as "Xbase" to distinguish it from the Ashton-Tate product. Hundreds of books have been written on dBase and Xbase programming.

In 1988 Ashton-Tate filed suit against Fox Software and Santa Cruz Operation (SCO) for copying dBase's "structure and sequence" in FoxBase+ (SCO marketed XENIX and UNIX versions of the Fox products). In December of 1990, U.S. District judge Terry Hatter, Jr. dismissed Ashton-Tate's lawsuit and invalidated Ashton-Tate's copyrights for not disclosing that dBase had been based, in part, on the public domain JPLDIS. In October of 1991, while the case was still under appeal, Borland International acquired Ashton-Tate, and as one of the merger's provisions the U.S. Justice Department required Borland to end the lawsuit against Fox and allow other companies to use the dBase language without the threat of legal action.

Today, implementations of the dBase language have expanded to include many features targeted for business applications, including object-oriented programming, manipulation of remote and distributed data via SQL, Internet functionality, and interaction with modern devices.

Programming example

The following example opens an employee table ("empl"), gives every manager who supervises 1 or more employees a 10-percent raise, and then prints the names and salaries.

USE empl REPLACE ALL salary WITH salary * 1.1 FOR supervises > 0 LIST ALL fname, lname, salary TO PRINT * (comment: reserved words shown in CAPITALS for illustration purposes)

Note how one does not have to keep mentioning the table name. The assumed ("current") table stays the same until told otherwise. This is in contrast to SQL which almost always needs explicit tables. Because of its origins as an interpreted, dBase used a variety of contextual techniques to reduce the amount of typing needed. This facilitated incremental, interactive development but also made modular programming difficult. A tenet of modular programming is that the correct execution of a program module must not be affected by external factors such as the state of memory variables or tables being manipulated in other program modules. Because dBase was not designed with this in mind, developers had to be careful about porting (borrowing) programming code that assumed a certain context and it would make writing larger-scale modular code difficult. Work-area-specific references were still possible using the arrow notation ("B->customer") so that multiple tables could be manipulated at the same time.

Another notable feature is the re-use of the same clauses for different commands. For example, the FOR clause limits the scope of a given command. (It is somewhat comparable to SQL's WHERE clause). Different commands such as LIST, DELETE, REPLACE, BROWSE, etc. could all accept a FOR clause to limit (filter) the scope of their activity. This simplifies the learning of the language.

dBase was also one of the first business-oriented languages to implement string evaluation.

i = 2 myMacro = "i + 10" i = &myMacro // i now has the value 12

Here the "&" tells the interpreter to evaluate the string stored in "myMacro" as if it were programming code. This is an example of a feature that made dBase programming flexible and dynamic, sometimes called "meta ability" in the profession. However, it could also be problematic for pre-compiling and for making programming code secure from hacking. However, dBase tended to be used for custom applications for small and medium companies where the lack of protection against copying, as compared to compiled software, was often less of an issue.

Interactivity

In addition to the dot-prompt, dBase 3+ and dBase IV came packaged with an ASSIST (see the photo at the top of page) application to manipulate data and queries, as well as a APPSGEN application which allowed the user to generate applications without resorting to code writing like a 4GL. The dBASE IV APPSGEN tool was based largely on portions of an early CP/M product named Personal Pearl.

Niches

Although the language has fallen out of favor as a primary business language, some find dBase an excellent interactive ad-hoc data manipulation tool. Whereas SQL retrieves data sets from a relational database (RDBMS), with dBase one can more easily manipulate, format, analyze and perform calculations on individual records, strings, numbers, and so on in a step-by-step imperative (procedural) way instead of trying to figure out how to use SQL's declarative operations.

As an application development platform, dBase fills a gap between lower level languages such as C, C++, and Java and high-level proprietary 4GLs (fourth generation languages) and purely visual tools, providing relative ease-of-use for business people with less formal programming skill and high productivity for professional developers willing to trade off the low-level control.

dBase remained a popular teaching tool even after sales slowed because the text-oriented commands were easier to present in printed training material than the mouse-oriented competitors. (Mouse-oriented commands were added to the product over time, but the command language remained a popular de-facto standard while mousing commands tended to be vendor-specific.)

File formats

A major legacy of dBase is its .dbf file format, which has been adopted in a number of other applications. For example, the shapefile
Shapefile

The ESRI Shapefile or simply a shapefile is a popular geospatial Vector graphics data format for geographic information systems software. It is developed and regulated by ESRI as a open standard for data interoperability among ESRI and other software products....
 format developed by ESRI
ESRI

ESRI is a software development and services company providing Geographic Information System software and geodatabase management applications. The headquarters of ESRI is in Redlands, California....
 for spatial data in a geographic information system
Geographic Information System

A geographic information system captures, stores, analyzes, manages, and presents data that refers to or is linked to location.In the strictest sense, the term describes any Information systems that integrates, stores, edits, analyzes, shares, and displays georeference information....
 uses .dbf files to store feature attribute data.

dBase's database system was one of the first to provide a header
Header (information technology)

In information technology, header refers to supplemental data placed at the beginning of a block of data being stored or transmitted. In data transmission, the data following the header are sometimes called the Payload or body....
 section for describing the structure of the data in the file. This meant that the program no longer required advance knowledge of the data structure, but rather could ask the data file how it was structured. Note that there are several variations on the .dbf file structure, and not all dBase-related products and .dbf file structures are necessarily compatible.

A second filetype is the .dbt file format for memo fields. While character fields are limited to 254 characters each, a memo field is a 10-byte pointer into a .dbt file which can include a much larger text field. dBase was very limited in its ability to process memo fields, but some other xBase languages such as Clipper treat memo fields as strings just like character fields for all purposes except permanent storage.

dBase uses .ndx files for indexes. Some xBase languages include compatibility with .ndx files while others use different file formats such as .ntx used by Clipper
Clipper programming language

Clipper is a computer programming language that is used to create computer programs that originally operated primarily under DOS. Although it is a powerful general-purpose programming language, it was primarily used to create database/business programs....
 and .idx/.cdx used by FoxPro
FoxPro

has two meanings:* Visual FoxPro - an object-oriented programming language and RDBMS, published by Microsoft, for Microsoft Windows.* FoxPro 2 - a text-based procedural programming language and RDBMS, originally published by Fox Software and later by Microsoft, for MS-DOS, Microsoft Windows, Macintosh, and UNIX...
 or FlagShip
Flagship

A flagship is the lead ship in a fleet of vessels, a designation given on account of being either the largest, fastest, newest, most heavily armed or, for publicity purposes, the most well known....
.

External links