Basic Statements - IBM 5100 Basic Reference Manual

Hide thumbs Also See for 5100:
Table of Contents

Advertisement

58
BASIC STATEMENTS
The statements used in the BASIC language for the 5100 are listed below. A brief
description of each statement is included.
CHAIN - Ends a program. then loads and begins executing another program.
CLOSE - Deactivates open files.
DATA - Creates an internal data table of values you supply.
DEF - Defines an arithmetic function t!) be used in the program.
DIM - Specifies the size (dimensions) of an array.
END - Ends a program.
FNEND - Ends an arithmetic function defined in a DEF statement.
FOR - Begins a loop.
GET - Assigns values from a file to variables.
GOSUB - Branches the program to the beginning of a subroutine.
GOTO - Branches the program to a specific statement.
IF - Branches the program depending on specific conditions.
Image - Specifies formatting of data to be displayed or printed.
INPUT - Assigns values from the keyboard to variables during program execution.
LET - Assigns values to variables.
MAT Assignment - Assigns values to all elements of an array.
MAT GET - Assigns values from a file to elements of an array.
MAT INPUT - Assigns values from the keyboard to elements of an array.
MAT PRINT (FLP) - Displays or prints the values of all elements of an array.
MAT PRINT USING (FLP) - Displays or prints the values of all elements of an
array in a format defined in an :image statement.
MAT PUT - Writes the values of all elements of an array into a tape file.
MAT READ - Assigns values from the internal data table (see DA TA) to elements
of an array.
NEXT - Ends a loop (see FOR and NEXn.

Advertisement

Table of Contents
loading

Table of Contents