-->
Previous Table of Contents Next


dbMan

The dbMan program is an interpreter. When you start dbMan, you get a CMD: prompt. This is where you enter all your commands to dbMan. You can think of this as a . prompt in dBASE. For starters, you can type in ASSIST, at the CMD: prompt. ASSIST starts up a menu-driven interface similar to the ones available with FoxPro or dBASE.

The menu-driven interface is not very elaborate. ASSIST only enables one file to be open at a time, which means that it is not possible to set up relations. It is possible to start up a simple program generator from ASSIST. Again, it has a single file limitation.

You can compile programs in dbMan. Compiling a program does not produce an executable binary. It produces a .run file, which still requires dbMan to execute it. It is also possible to enter CREATE REPORT or MODIFY REPORT at the CMD: prompt. This puts you in dbMan’s report writer. The report writer enables display of data by using the relational operators. dbMan provides a function called PMENU() to create pull-down menus. PMENU doesn’t have any mechanism for temporarily disabling a menu choice.

dbMan handles windows differently from other xBase products. Prior to defining a window, you call PUSHWIND() to push the current window onto a stack. When a program is in its initial state, the entire screen is considered to be a window. You then call WINDOW() to create the window. When you are finished with it, you call POPWIND(), which removes the window and makes the previous window active.

dbMan enables you to define only one hot key. You do so by invoking the ONKEY() function. This has no effect until you execute the ONKEY statement. The statement will normally be DO hot-key-handler.

The BROWSE command has a long list of options. You can browse only specified fields, and you can specify the width of each field, and whether it is editable. The list of fields can include fields in other files, which is great if you have relationships set up.

dbMan does not use either termcap or terminfo. Instead, it includes a file named dbmterm.dbm. This file looks similar to termcap. There are no entries for either xterm or console. You have to create your own entries using the existing entries.

dbMan has no facility for executing functions written in C or assembler, so you have to use what they offer. There were a couple of nasty bugs in the version of dbMan I evaluated, which was version 5.32. The main bug I found was that procedure files simply didn’t work if the procedure file was a .prg. If you compiled the procedure file into a .run file, it worked okay.


Note:  
You can get dbMan from
VERASOFT Corporation
4340 Alamaden Expressway, #110
San Jose, CA 95118
(408) 723-9044

Adabas-D

Adabas-D is a full-featured database that offers the power of commercial database products for UNIX that sell for thousands of dollars. Supporting SQL and links to many popular database formats, Adabas-D is worth considering if you need more power than the xBase products just mentioned.


Tip:  
There are several vendors and suppliers of Adabas-D. One of the more reliable is Caldera, which offers several Linux application products, as well as their own version of Slackware Linux under the name Caldera OpenLinux. Caldera can be reached at:
Caldera Incorporated
633 South 550 East
Provo, Utah 86406
801-377-7687
knfo@caldera.com
http://www.caldera.com

Installing Adabas-D

Adabas-D is usually supplied on CD-ROM, although a few FTP sites make it available, too. Installation is quite simple. Although Caldera’s version is labeled as suitable for use with their own OpenLinux, Adabas-D works on virtually all Linux implementations. Installation is simple. The following procedure works on all versions of Red Hat, Slackware, and OpenLinux we tested. We’ll assume the Adabas-D software is on CD-ROM. If you have a downloaded file, it should be placed in an accessible directory and the mounting steps mentioned below skipped.

Log in as root. The installation procedure should be conducted as the root login. Mounting the CD-ROM is the first step. This is particularly easy with the command:


mount /mnt/cdrom

This version of the mount command skips one of the arguments you may have seen in earlier chapters where the mount command has both a device name and a mount point. Since both are provided with this mount command, the system loads the CD-ROM device onto the filesystem mount point /mnt/cdrom. You can use any other mount point, of course, if you want. We’ll assume the default throughout this section.

After mounting the CD-ROM, change into the Adabas-D mounted directory with the command:


cd /mnt/cdrom

A directory listing at this point will show the contents of the Adabas-D. Most of the files are in subdirectories.

To make life easier for us, this version of the Adabas-D CD-ROM distribution has an installation script that takes care of the steps usually conducted manually. To execute this script, simply type the command:


./install

The preceding period and slash indicate to the shell that the install script is in the current directory. If you leave these off, Linux looks for an install program elsewhere on the filesystem before looking in the current directory. This usually results in another install routine being executed. If your version of Adabas-D does not have an installation script, there may be a list of steps you must perform manually in another file. Check the directory for instructions.


Previous Table of Contents Next