TSB COMMANDS
I've listed a few of the more unusual commands in the Timeshared BASIC lexicon.

LIBRARY commands
LIBRARY or LIB
Produces a list of system programs and files.

GROUP or GRO
Produces a list of group programs and files.

CATALOG or CAT
Produces a list of programs and files stored in the user's own program library.

Each user has access to the three libraries described. He has complete control over his own library, using any of the commands used to store, delete, or retrieve programs and files.

Each user is part of a group, all having IDcodes with the same letter and same first digit. The user whose IDcod ends in 00 is the group librarian, or Group Master. The Group Master is responsible for maintaining the group library, entering and deleting programs in the same manner as the System Master controls the system library.

The system library is under the control of the System Master, user A000. Only the System Master (actually any user with access to the password for IDcode A000) can enter programs or files into the system library, or delete programs and files from the system library.

TIM function
TIM(X)
TIM(0) = current minutes (0 to 59)
TIM(1) = current hour (0 to 23)
TIM(2) = current day (1 to 366)
TIM(3) = current year (0 to 99)

TIME command
TIME
Inform the user of terminal time used since log on, and total time used for the account.

ENTER function
ENTER # variable 1
Sets variable 1 to the terminal number (between 0 and 31) of the user.

ENTER expression, variable 2, variable 3
expression is the time limit (0 to 255 seconds);
variable 2 returns the approximate time the user took
variable 3 is the data input variable and can be either a numeric or a string variable.

ENTER # variable 1, expression, variable 2, variable 3
Sets variable 1 to the terminal number (between 0 and 31)
of the user. expression is the time limit (0 to 255 seconds);
variable 2 returns the approximate time the user took
variable 3 is the data input variable and can be either a numeric or a string variable.

BRK function
BRK(x)
x < 0, returns the current status of the BREAK capability;
x = 0, disables the BREAK capability;
x > 0, enables the BREAK capability

FILES statement
FILES filename(s)
Declares which files will be used in a program and assigns a reference number to each file. A maximum of eight (8) files can be listed.

Public files in system are read-only and must be preceeded with a $, like this:

100 FILES SCORE,$DATA

This assigns reference number 1 to the file SCORE and reference number 2 to system file DATA.


Comments to Webmaster

Click here for the Home page.
Click here for the HP 2000 page.
Click here for the Wanted page.

Last updated March 8, 2008