HP BASIC Keyword Summary

Much more information on these keywords is found in the Reference Manual.

Booting BASIC

LIST BIN Lists binaries currently in memory.

LOAD BIN Loads a BIN-type file into memory .

SYSBOOT Returns system control to the boot ROM.

rmb (HP-UX command) enters BASIC/UX from HP-UX.

Program Entry/Editing

CHANGE Performs search and replace operations on the program in memory.

COPYLINES Copies program lines from one position to another.

EDIT Accesses a program using edit mode to enter new program lines or modify existing ones. Also used with typing-aid softkeys.

FIND Searches for a character sequence in a program.

DEL Deletes specified program lines from memory.

INDENT Indents a program to reflect its structure.

LIST Lists program lines or typing-aid softkeys.

MOVELINES Moves program lines from one position to another.

REM and ! Allows comments on program lines.

REN Renumbers programs.

SECURE Makes program lines unlistable.

Program Debugging and Error Handling

CAUSE ERROR Simulates the occurrence of the BASIC error of the specified number.

CLEAR ERROR Resets most error indicators (ERRN, ERRLN, ERRM$, and ERRL) to their power-up state.

ERRDS Returns the device selector involved in the last I/O error.

ERRL Indicates whether an error occurred during execution of a specified line.

ERRLN Returns the program-line number of the most recent error.

ERRM$ Returns the text of the last error message.

ERRN Returns the most recent program execution error.

ERROR RETURN Returns program control to the line following the line which caused the most recent GOSUB. Used with ON ERROR GOSUB to avoid retrying the line that caused the error (use RETURN to return control to the line which caused the error).

ERROR SUBEXIT Returns program control to the line following the line which caused the most recent CALL. Used with ON ERROR CALL to avoid retrying the line that caused the error (use SUBEXIT to return control to the line which caused the error).

TRACE ALL Allows tracing of program flow and variable assignments during program execution.

TRACE PAUSE Causes program execution to pause at a specified line.

TRACE OFF Disables TRACE ALL and TRACE PAUSE.

XREF Provides a cross-reference to all identifiers used in a program.

Memory Allocation and Management

ALLOCATE Dimensions and allocates memory for arrays or string variables during program execution.

COM Dimensions and reserves memory for variables in a common area for access by more than one context.

COMPLEX Dimensions and reserves memory for complex variables and arrays.

DEALLOCATE Reclaims memory previously allocated.

DELSUB Deletes specified subprograms from memory.

DIM Dimensions and reserves memory for REAL numeric arrays and strings.

INITIALIZE Creates and deletes RAM mass storage volumes. (See also under "Mass Storage.")

INMEM Checks for the presence of a user-defined subprogram (SUB) or function (FN) in memory.

INTEGER Dimensions and reserves memory for INTEGER variables and arrays.

LOADSUB Loads BASIC subprograms from a PROG-type file into memory.

OPTION BASE Specifies the default lower bound for arrays.

REAL Dimensions and reserves memory for full-precision (REAL) variables and arrays.

SCRATCH Erases selected portions of memory.

Comparison Operators

= Equality.

<><> Inequality.

<  Less than.

> Greater than.

>= Greater than or equal to.

Math

General Math

= Addition operator.

- Subtraction operator.

* Multiplication operator.

/ Division operator.

^ Exponentiation operator.

ABS Returns an argument's absolute value.

DIV Divides one argument by another and returns the integer portion of the quotient.

DROUND Returns the value of an expression, rounded to a specified number of digits.

EXP Raises the base e to a specified power.

FRACT Returns the fractional portion of an expression.

INT Returns the integer portion of an expression.

LET Assigns values to variables.

LGT Returns the log (base 10) of an argument.

LOG Returns the natural logarithm (base e) of an argument.

MAX Returns the largest value in a list of arguments.

MAXREAL Returns the largest number available.

MIN Returns the smallest value in a list of arguments.

MINREAL Returns the smallest number available.

MOD Returns the remainder of integer division.

MODULO Return the modulo of division.

PI Returns an approximation of &pi;.

PROUND Returns the value of an expression, rounded to the specified power of ten.

RANDOMIZE Modifies the seed used by the RND function.

RES Returns last live keyboard numeric result.

RND Returns a pseudo-random number.

SGN Returns the sign of an argument.

SQRT Returns the square root of an argument (same as SQR).

SQR Returns the square root of an argument (same as SQRT).

Complex Math

ARG Returns the argument (or the angle in polar coordinates) of a COMPLEX value.

CMPLX Creates a COMPLEX value, given a real and an imaginary part.

CONJG Returns the conjugate of a COMPLEX value (negates imaginary part).

IMAG Returns the imaginary part of a COMPLEX value.

REAL Returns the real part of a COMPLEX value.

Binary Functions

BINAND Returns the bit-by-bit logical-and of two arguments.

BINCMP Returns the bit-by-bit complement of an argument.

BINEOR Returns the bit-by-bit exclusive-or of two arguments.

BINIOR Returns the bit-by-bit inclusive-or of two arguments.

BIT Returns the state of a specified bit of an argument.

ROTATE Returns a value obtained by shifting an argument's binary representation a number of bit positions, with wrap-around.

SHIFT Returns a value obtained by shifting an argument's binary representation a number of bit positions, without wrap-around.

Trigonometric Operations

ACS Returns the arccosine of an argument.

ASN Returns the arcsine of an argument.

ATN Returns the arctangent of an argument.

COS Returns the cosine of an angle.

DEG Sets the degrees mode.

RAD Sets the radians mode.

SIN Returns the sine of an angle.

TAN Returns the tangent of an angle.

Hyperbolic Operations

ACSH Returns the hyperbolic arc cosine of a numeric expression.

ASNH Returns the hyperbolic arcsine of a numeric expression.

ATNH Returns the hyperbolic arctangent of a numeric expression.

COSH Returns the hyperbolic cosine of a numeric expression.

SINH Returns the hyperbolic sine of a numeric expression.

TANH Returns the hyperbolic tangent of a numeric expression.

String Operations

& Concatenates two string expressions.

CHR$ Converts a numeric value into one character byte (one ASCII character).

DVAL Converts an alternate-base representation into a numeric value.

DVAL$ Converts a numeric value into an alternate-base representation.

IVAL Converts an alternate-base representation into an INTEGER number.

IVAL$ Converts an INTEGER into an alternate-base representation.

LEN Returns the number of bytes (ASCII characters) in a string expression.

LEXICAL ORDER IS Determines the collating sequence used in ASCII string comparisons.

LWC$ Converts all the ASCII characters in a string to lower case characters.

MAXLEN Returns the maximum (dimensioned) length of a string variable in bytes.

NUM Returns the decimal value of the first byte (the first ASCII character) in a string.

POS Returns the position of a string within a string expression.

REV$ Reverses the order of the characters in a string expression.

RPT$ Repeats the characters in a string expression a specified number of times.

TRIM$ Removes the leading and trailing ASCII blanks from a string expression.

UPC$ Converts all the ASCII characters in a string to upper case characters.

VAL Converts a string of ASCII digits into a numeric value.

VAL$ Returns an ASCII string expression representing a specified numeric value.

Logical Operators

AND Returns 1 or 0 based on the logical AND of two arguments.

EXOR Returns 1 or 0 based on the logical exclusive-or of two arguments.

NOT Returns 1 or 0 based on the logical complement of an argument.

OR Returns 1 or 0 based on the logical inclusive-or of two arguments.

Mass Storage

ASSIGN Assigns an I/O path name and attributes to a file.

CAT Lists the contents of the mass storage media's directory.

CHECKREAD Enables or disables read-after-write verification of mass storage operations.

CHGRP Changes the group id of an HFS or SRM/UX file, or directory.

CHOWN Changes the ownership of an HFS or SRM/UX file, or directory.

COPY Provides a method of copying mass storage files and volumes.

CREATE Creates an HP-UX-type file on a mass storage media.

CREATE ASCII Creates an ASCII-type file on a mass storage media.

CREATE BDAT Creates a BDAT-type file on a mass storage media.

CREATE DIR Creates a directory on a mass storage media.

GET Reads an ASCII or HP-UX file into memory as a program.

INITIALIZE Formats a mass storage media for use with BASIC and places a LIF directory on the media.

LINK Allows the linking of two file names to the same file.

LOAD Loads a PROG-type file into memory.

LOAD KEY Loads typing-aid softkey definitions.

LOADSUB Loads BASIC subprograms from a PROG-type file into memory.

LOCK Prevents other SRM workstation computers from accessing the file to which the specified I/O path is currently assigned.

MASS STORAGE IS or MSI Specifies the default mass storage device.

PERMIT Changes the access permission bits on an HFS file or directory.

PRINT LABEL Writes a string expression to the label of a media.

PROTECT Specifies a LIF protect code or a password for an SRM file or directory.

PURGE Deletes a file or directory.

READ LABEL Reads the label of a media to a string variable.

RELEASE Causes the media in a magneto-optical drive to be released, so it can be removed.

RENAME Changes a directory's name or file's name and/or path.

SAVE and RE-SAVE Create an ASCII file and write BASIC program lines as strings into the file. RE-SAVE can write to an existing HP-UX file.

STORE and RE-STORE Create a PROG file and write a BASIC program from memory into the file in an internal format.

STORE KEY and RE-STORE KEY Create a BDAT file and store the typing-aid softkey definitions in the file.

STORE SYSTEM Stores BASIC and all binaries currently in memory in a SYSTM file on LIF and SRM. On HFS, it is an HP-UX file.

UNLOCK Removes exclusive access to an SRM file set by the LOCK statement.

WILDCARDS Enables and disables wildcard recognition within certain file related commands.

Program Control

CALL Transfers program execution to a specified subprogram and passes parameters.

CONT Resumes execution of a paused program.

DEF FN Defines the beginning of a function subprogram.

FNEND Defines the bounds of a user-defined function subprogram.

END Terminates program execution and marks the end of the main program segment.

FN Invokes a user-defined function.

FOR...NEXT Defines a loop which is repeated a specified number of times.

GOTO Transfers program execution to a specified line.

GOSUB Transfers program execution to a specified subroutine.

IF...THEN Provides conditional branching.

ELSE Provides a conditional execution of a program segment.

LOOP Defines a loop which is repeated until the expression in an EXIT IF statement is evaluated as true.

EXIT IF Provides looping with conditional exit.

NPAR Returns the number of parameters passed to the current subprogram.

ON expression Transfers program execution to one of several locations based on the value of an expression.

PAUSE Suspends program execution.

REPEAT...UNTIL Allows execution of a program segment until the specified condition is true.

RETURN Transfers program execution from a subroutine to the line following the invoking GOSUB.

RETURN expression Transfers program execution from a user-defined function by returning a value to the calling context.

RUN Starts program execution.

SELECT...CASE Allows execution of one program segment of several.

STOP Terminates execution of the program.

SUB Defines the beginning of a SUB subprogram and specifies its formal parameters.

SUBEND Defines the bounds of a subprogram.

SUBEXIT Transfers control from within a subprogram to the calling context.

SUSPEND/RESUME INTERACTIVE Allows suspending and resuming interactive keyboard operation while a program is running.

SYSTEM$ Returns selected system status and configuration information.

WAIT Causes program execution to wait a specified number of seconds.

WAIT FOR EOR Causes program execution to wait for an end-of-record during a TRANSFER.

WAIT FOR EOT Causes program execution to wait for an end-of-transfer.

WHILE Allows execution of a program segment while the specified condition is true.

Event-Initiated Branching

CDIAL Returns information about "control dial" devices.

DISABLE Disables event-initiated branching (except for ON END, ON ERROR, and ON TIMEOUT).

DISABLE EXT SIGNAL Disable BASIC/UX handling of HP-UX signals.

DISABLE INTR Disables interrupts defined by the ON INTR statement.

ENABLE Re-enables all event-initiated branches previously suspended by DISABLE.

ENABLE EXT SIGNAL Enable BASIC/UX handling of HP-UX signals.

ENABLE INTR Enables the specified interface to generate an interrupt which can cause event-initiated branches.

EXECUTE Execute an HP-UX command from BASIC/UX.

HILBUF$ Returns data sent by an HP-HIL device.

KBD$ Returns the contents of the ON KBD buffer.

KNOBX Returns the number of horizontal knob pulses.

KNOBY Returns the number of vertical knob pulses.

ON CDIAL Sets up and enables a branch to be taken upon sensing rotation of one of the dials on a "control dial" device.

OFF CDIAL Disables any ON CDIAL branching currently set up.

ON CYCLE Defines and enables an event-initiated branch to be taken each time the specified number of seconds has elapsed.

OFF CYCLE Cancels any event-initiated branches previously defined and enabled by an ON CYCLE statement.

ON DELAY Defines an enables an event-initiated branch to be taken after the specified number of seconds has elapsed.

OFF DELAY Cancels any event-initiated branches previously defined and enabled by an ON DELAY statement.

ON END Defines and enables an event-initiated branch to be taken when end-of-file is reached on the mass storage file associated with the specified I/O path.

OFF END Cancels any event-initiated branches previously defined and enabled by an ON END statement.

ON EOR Defines and enables an event-initiated branch to be taken when an end-of-record is encountered during a TRANSFER.

OFF EOR Cancels any event-initiated branches previously defined and enabled by an ON EOR statement.

ON EOT Defines and enables an event-initiated branch to be taken when the last byte is transferred by a TRANSFER statement.

OFF EOT Cancels any event-initiated branches previously defined and enabled by an ON EOT statement.

ON ERROR Defines and enables an event-initiated branch which results from a trappable error.

OFF ERROR Cancels any event-initiated branches previously defined and enabled by an ON ERROR statement. Further errors are reported to the user in the usual fashion.

ON EXT SIGNAL Defines an event-initiated branch to be taken when a system generated signal is received.

OFF EXT SIGNAL Cancels event-initiated branches previously defined by an ON EXT SIGNAL statement.

ON HIL EXT Enables an end-of-line interrupt in response to receiving data from HIL devices whose poll records are not otherwise being processed by the BASIC system.

OFF HIL EXT Cancels any event-initiated branches previously defined and enabled by an ON HIL EXT statement.

ON INTR Defines an event-initiated branch to be taken when an interface card generates an interrupt.

OFF INTR Cancels any event-initiated branches previously defined and enabled by an ON INTR statement.

ON KBD Defines an event-initiated branch to be taken when a key is pressed.

OFF KBD Cancels any event-initiated branches previously defined and enabled by an ON KBD statement.

ON KEY...LABEL Defines and enables an event-initiated branch to be taken when a softkey is pressed.

OFF KEY Cancels any event-initiated branches previously defined and enabled by an ON KEY statement.

ON KNOB Defines an event-initiated branch to be taken when the knob is turned.

OFF KNOB Cancels any event-initiated branches previously defined and enabled by an ON KNOB statement. Any pending ON KNOB branches are lost. Further use of the knob will result in normal scrolling or cursor movement.

ON SIGNAL Defines an event-initiated branch to be taken when a SIGNAL statement is executed using the same signal selector.

OFF SIGNAL Cancels the ON SIGNAL definition with the same signal selector. If no signal selector is provided, all ON SIGNAL definitions are canceled. OFF SIGNAL only applies to the current context.

ON TIME Defines an event-initiated branch to be taken when the clock reaches a specified time.

OFF TIME Cancels any event-initiated branches previously defined and enabled by an ON TIME statement.

ON TIMEOUT Defines an event-initiated branch to be taken when an I/O timeout occurs on the specified interface.

OFF TIMEOUT Cancels any event-initiated branches previously defined and enabled by an ON TIMEOUT statement.

SET HIL MASK Select HIL devices to be used by BASIC/UX processes.

SIGNAL Generates a software interrupt.

SYSTEM PRIORITY Sets a minimum level of system priority for event-initiated branches.

HP-HIL Device Support

HIL SEND Sends HP-HIL commands to HP-HIL devices.

See also ON/OFF CDIAL, CDIAL, ON/OFF HIL EXT, HILBUF$, ON/OFF KNOB, KNOBX, KNOBY, in the preceding "Event-Initiated Branching" section.

Graphics

Graphics Control

ALPHA ON/OFF Turns the alpha planes on or off.

AREA Selects an area fill color.

CLIP Redefines a soft-clip area.

DIGITIZE Inputs the coordinates of a digitized point.

DUMP GRAPHICS Copies the contents of the graphics display to a printing device.

DUMP DEVICE IS Specifies the device or file for DUMP operations.

GCLEAR Clears the graphics area.

GESCAPE Sends and returns device-dependent graphics information.

GINIT Resets graphics parameters to power-on values.

GLOAD Loads the graphics display from an INTEGER array.

GRAPHICS ON/OFF Turns the graphics planes on or off.

GRAPHICS INPUT IS Specifies the device for digitizing operations.

GSEND Sends an HPGL command to the current PLOTTER IS device or file.

GSTORE Copies the contents of the graphics display to an INTEGER array.

PLOTTER IS Specifies the default plotting device or file.

RATIO Returns the physical aspect ratio of the plotter's hard-clip limits.

READ LOCATOR Samples the locator device, without waiting for a digitize signal.

SET ECHO Specifies the coordinates of an echo on the current plotting device.

SET LOCATOR Sets the locator position on the input device.

SET PEN Defines the color of entries in the color map.

SHOW Defines plotting units that will appear in the VIEWPORT area.

TRACK...ON/OFF Enables and disables locator tracking on the current display device.

VIEWPORT Specifies an area in which WINDOW and SHOW statements are mapped.

WHERE Returns the current logical position of the pen.

WINDOW Specifies the min and max values for the plotting area specified by VIEWPORT.

Graphics Plotting

DRAW Draws a line to a specified point.

IDRAW Draws a line incrementally to a specified point.

IMOVE Moves the pen incrementally to a specified point.

IPLOT Draws a line incrementally to the specified point with optional pen control.

LINE TYPE Selects a plotting line type.

MOVE Moves the pen to a specified point.

PDIR Specifies rotation for IPLOT, RPLOT, RECTANGLE, POLYGON and POLYLINE.

PEN Selects a plotter pen.

PENUP Lifts the pen from the plotting surface.

PIVOT Specifies rotation for lines made with moves, draws, plots, polygons, or rectangles.

PLOT Draws a line to the specified point with optional pen control.

POLYGON Draws all or part of a closed polygon.

POLYLINE Draws all or part of an open polygon.

RECTANGLE Draws a rectangle that can be filled and edged.

RPLOT Draws a line relative to a movable origin with optional pen control.

Graphic Axes and Labeling

AXES Draws axes with optional tick marks.

CSIZE Sets the size and aspect ratio for labeled characters.

FRAME Draws a frame around the current clipping area.

GRID Draws a full grid pattern for axes.

LABEL Draws alphanumeric labels.

LDIR Defines the angle for drawing labels.

LORG Specifies a labeling location relative to the pen location.

SYMBOL Allows labeling with user-defined symbols.

HP-IB Control

ABORT Terminates bus activity and asserts IFC.

CLEAR Places specified devices in a device-dependent state.

LOCAL Returns specified devices to their local state.

LOCAL LOCKOUT Sends the LLO message, disabling all device's front-panel controls.

PASS CONTROL Passes Active Controller capability to another device.

PPOLL Returns a parallel poll byte from the bus.

PPOLL CONFIGURE Programs a parallel poll bit for a specified device.

PPOLL RESPONSE Defines the computers response to a parallel poll.

PPOLL UNCONFIGURE Disables parallel poll for specified devices.

REMOTE Sets specified devices to their remote state.

REQUEST Sends a service request to the Active Controller.

SEND Sends explicit command and data messages on the bus.

SPOLL Returns a serial poll byte from a specified device.

TRIGGER Sends the trigger message to specified devices.

Clock and Calendar

DATE Converts a formatted date into a number of seconds.

DATE$ Converts a number of seconds into a formatted date.

SET TIME Sets the time of day on the real-time clock.

SET TIMEDATE Sets the time and date on the real-time clock.

TIME Converts a formatted time of day into a number of seconds past midnight.

TIME$ Converts a number of seconds past midnight into a formatted time of day.

TIMEDATE Returns the value of the real-time clock.

TIMEZONE IS Specifies the clock offset from Greenwich Mean Time (GMT), which is used when sharing a disk with an HP-UX system.

General Device Input/Output

ABORTIO Terminates an active TRANSFER.

ASSIGN Associates an I/O path name and attributes with a device, group of devices, mass storage file, or buffer.

BEEP Produces one of 63 audible tones.

BREAK Sends a Break signal on a serial interface.

CONTROL Sends control information to an interface or a table associated with an I/O path name.

CRT Returns the device selector of the CRT.

DATA Specifies data accessible via READ statements.

DISP Outputs items to the CRT display line.

DUMP ALPHA Transfers alpha contents of the CRT to a specified device.

DUMP DEVICE IS Specifies a device or file for DUMP ALPHA and DUMP GRAPHICS operations.

ENTER Inputs data from a device, file, string, or buffer to a list of variables.

IMAGE Provides formats for use with ENTER, OUTPUT, DISP, LABEL and PRINT operations.

INPUT Inputs data from the keyboard to a list of variables.

KBD Returns the device selector of the keyboard.

LINPUT Inputs literal data from the keyboard to a string variable.

OUTPUT Outputs items to a specified device, file, string variable, or buffer.

PRINT Outputs items to the current PRINTER IS device.

PRINTALL IS Specifies a device for logging messages normally sent to the display.

PRINTER IS Specifies a device for PRINT, CAT, and LIST statements.

PRT Returns 701, usually the device selector of an external printer.

READ Inputs data from DATA lists to variables.

READIO Reads the contents of the specified hardware registers on the specified interface, or reads the contents of the specified memory address.

RESET Resets an interface or pointers of an I/O path.

RESTORE Causes a READ statement to access the specified DATA statement.

SC Returns the interface select code associated with an I/O path.

SOUND Produces a single tone or multiple tones on the sound generator of an HP-HIL interface.

STATUS Returns the value from a specified interface status register.

TAB Moves the print position ahead to a specified point; used within PRINT and DISP statements.

TABXY Specifies the print position on the internal CRT; used with PRINT statements.

TRANSFER Initiates unformatted I/O transfers.

WRITEIO Writes an integer representation of the register data to the specified hardware register on the specified interface or to the specified memory address.

Display and Keyboard Control

ALPHA HEIGHT Sets the number of display lines used for alpha output.

ALPHA PEN Selects the pen number to be used for displaying alpha.

CHRX Returns the number of pixel columns in an alpha character cell on a bit-mapped display.

CHRY Returns the number of pixel rows in an alpha character cell on a bit-mapped display.

CLEAR LINE Clears the keyboard input line of the display.

CLEAR SCREEN Clears the display screen.

CLEAR WINDOW Clear the contents of a BASIC/UX window.

CLS Clears the display screen.

CREATE WINDOW Create a window to be accessed by BASIC/UX.

CRT Returns 1, which is the select code of the CRT display.

DESTROY WINDOW Delete a window created with CREATE WINDOW.

DISPLAY FUNCTIONS ON/OFF Enables and disables the "display functions" mode.

KBD Returns 2, which is the select code of the keyboard.

KBD CMODE Enables and disables the "98203 Keyboard Compatibility Mode."

KBD LINE PEN Selects the pen number to be used for writing alpha characters on the "keyboard input line" and associated display areas.

KEY LABELS Turns softkey labels on and off.

KEY LABELS PEN Selects the pen number to be used for displaying softkey labels.

LIST WINDOW List all active BASIC/UX windows and their attributes.

MERGE ALPHA Joins the "simulated" separate alpha and graphics rasters set up by SEPARATE ALPHA FROM GRAPHICS.

MOVE WINDOW Move a text or graphics window created by BASIC/UX.

PRINT PEN Selects the pen number to be used for the output area and display line of the alpha display.

READ KEY Reads typing aid softkey definitions into a string variable.

RUNLIGHT ON/OFF Turns the run indicator at the bottom right of the screen on and off.

SCRATCH WINDOW Delete all active BASIC/UX windows except the root BASIC/UX window.

SEPARATE ALPHA Simulates the separate alpha and graphics rasters of Series 200 displays.

SET ALPHA MASK Specifies which display planes can be modified by alpha display operations.

SET CHR Re-defines the bit-pattern used by alpha character(s); only available on bit-mapped alpha displays.

SET DISPLAY MASK Specifies which planes of the alpha display are to be displayed.

SET KEY Sets the definition of one or more typing-aid softkeys.

SYSTEM KEYS Sets the softkey definitions to the System menu (ITF keyboards only).

USER n KEYS Sets the softkey definitions to the specified User menu (ITF keyboards only).

See also CONTROL, DISP, DUMP ALPHA, DUMP DEVICE IS, ENTER, IMAGE, INPUT, LINPUT, OUTPUT, PRINT, PRINTALL IS, PRINTER IS, STATUS, TAB, and TABXY in the preceding "I/O Operations" section.

Array Operations

BASE Returns the lower bound of a dimension of an array.

DET Returns the determinant of a matrix.

DOT Returns the dot product of two vectors.

MAT Performs various operations on numeric and string arrays.

MAT REORDER Reorders the elements in an array according to the subscript list in a vector.

MAT SEARCH Searches an array for user-defined conditions.

MAT SORT Sorts an array along one dimension according to lexical or numeric order.

RANK Returns the number of dimensions in an array.

REDIM Changes the subscript range of an array.

SIZE Returns the number of elements in a dimension of an array.

SUM Returns the sum of all the elements in a numeric array.

Globalization

These keywords are used with localized versions of BASIC that support languages with two-byte characters, such as Japanese.

CVT$ Converts strings from one character set to another, such as two-byte Japanese Katakana to two-byte Japanese Hiragana.

DICTIONARY IS Specifies the files that contain user and system dictionaries for keyboard input and conversion.

EXCHANGE Specifies two-byte character code conversions for easy printer interfacing. EXCHANGE is a secondary keyword used with ASSIGN, DUMP DEVICE IS, PRINTALL IS, and PRINTER IS.

FBYTE Returns 1 (true) when the first byte in a string is in the valid range for the first byte of HP-15 characters.

GFONT IS Specifies the file that contains the graphics font characters used by LABEL.

SBYTE Returns 1 (true) when the first byte in a string is in the valid range for the second byte of HP-15 characters.

Other

BYE Exits BASIC and returns to the operating system.

EXECUTE Executes an HP-UX or MS-DOS command from BASIC.

QUIT Exits BASIC and returns to the operating system.