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.
RETURN Return to TCL.
? Displays a command summary.
B Updates the source with logical indents (using BLIST with options U and S).
C Compiles the program using the BASIC command.
CD Compiles the program and sends the compiler output to the terminal.
CP Compiles the program and sends the compiler output to printer.
D Runs the program using the DEBUG command.
E Enters 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-specifier Changes the current file.
I item Changes the current item.
L Catalogs the program using the CATALOG command.
M Enters the ME editor to edit the program.
P Copies the program to the printer.
R Runs the program with the RUN command.
S Enters 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.
SSR Performs an SSELECT and then runs the program.
T command Executes 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.