Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.2 Online Documentation (MoTW) Revision 3

DB command (DataBasic) (m618704+db.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

DB

Provides prompts and selections for editing, compiling, cataloging, and running DataBasic programs.

Syntax

DB {file-specifier {item}}

Syntax elements

file-specifier The name of the file. If you do not supply a file-specifier, DB prompts you for the name of the file.

item The item-id of the required item. If you do not specify an item, DB prompts you for the item name.

@ commands

When you have entered the file and item names, DB echoes them and then displays an @ symbol to prompt you for commands.

Commands can be specified in upper or lower case.

RETURNReturn to TCL.

?Displays a command summary.

BUpdates the source with logical indents (using BLIST with options U and S).

CCompiles the program using the BASIC command.

CDCompiles the program and sends the compiler output to the terminal.

CPCompiles the program and sends the compiler output to printer.

DRuns the program using the DEBUG command.

EEnters the line Editor to edit the program. If you have specified a new item, the version number is inserted as a comment line at the beginning of the item. In an existing item, the version number is updated. You should delete this line if it is not required; in subroutine items, for example.

F file-specifierChanges the current file.

I itemChanges the current item.

LCatalogs the program using the CATALOG command.

MEnters the ME editor to edit the program.

PCopies the program to the printer.

RRuns the program with the RUN command.

SEnters the Screen Editor to edit the program.

SR Performs a SELECT and then runs the program. You are prompted for a file name and selection criteria.

SSRPerforms an SSELECT and then runs the program.

T commandExecutes the specified TCL command and then returns to the @ prompt.

Each of these commands can be followed by any options that are accepted by the TCL command being executed. Refer to the descriptions of the commands concerned for the available options.

Example

:DB
FILE NAME = BP
ITEM NAME = TEST
BP, TEST
@I TEST2
BP, TEST2
@E
TOP
.

At this point you can edit the TEST2 program in file BP. When you exit the Editor, DB returns you to the @ prompt.

RealityV15.2Revision 3Comment on this topic