Notes:
| 1. | The "Switches" column shows the compiler switch(es) required to enable this feature. |
| 2. | When more than one switch is listed, "or" is implied—i.e., just one of the switches is required. |
| 3. | Some keywords ("Note 3" references below) behave differently depending on the compiler switch specified; see topic link for details. |
| 4. | Although not listed here, both System-Defined Functions and Dot Variables are also effectively keywords in that they cannot be used as custom variable names. |
Keyword |
Switches |
Category |
Description |
|---|---|---|---|
|
Allocate a random file. |
||
X:1 |
Control Statement |
Execute AMOS commands as subroutines. |
|
AND |
|
Logical AND. |
|
X:2 |
|
Enables or disables the visibility of variables defined globally. |
|
X:2 |
Dyn Struct Statement |
Binds the specified DYNSTRUCT variable to the structure definition. |
|
BYTE |
|
|
BYTE(x) reads memory-mapped ports. |
|
Control Statement |
Unstructured subroutine call. |
|
CASE |
X:1, RC |
Control Struc Stmt |
Label option within SWITCH. |
CHAIN |
|
|
Provides the ability to pass command line arguments. |
X:2 |
Array Statement |
Removes all the elements of the array without destroying the array itself. |
|
|
Close file. |
||
X:1 |
|
Retrieve command line. |
|
DATA |
|
General Statement |
List of data elements with program. |
|
Returns system date. |
||
X:2 |
|
|
|
|
Compiler Directive |
Allows aliases to be defined for the names of functions and procedures. |
|
DEFAULT |
X:1, RC |
|
Default label option within SWITCH. |
X:1, RC |
Compiler Directive |
Define a symbolic constant. |
|
X:2 |
Compiler Directive |
Define a structure. |
|
X:2 |
Compiler Directive |
Defines an alias for a data type. |
|
DIM |
|
|
Deprecated; use DIMX instead. Dimension an array at runtime. |
X:2 |
|
Enhanced dynamic array allocation. |
|
X:1 |
|
Treat division by zero as zero rather than error. |
|
X:1, RC |
Ctrl Struct Statement |
Repeat loop while (or until) a condition is (or becomes) true. |
|
X:2 |
|
Like PRINT but creates a static text control. |
|
ECHO |
X:1 |
|
Set terminal echo mode; same as Xcall ECHO. |
|
|
Conditionals based on evaluating a constant expression. |
|
|
Ctrl Struct Statement |
Final alternative clause within an IF statement. |
|
X:2, RC |
Ctrl Struct Statement |
Intermediate alternative clauses an IF statement. |
|
END |
|
Control Statement |
Terminate execution of program. |
ENDFUNCTION |
X:2 |
|
Marks end of a function. |
|
Ctrl Struct Statement |
Terminates IF...ENDIF blocks. |
|
ENDPROCEDURE |
X:2 |
|
Marks end of a procedure. |
X:2 |
|
End of a DEFSTRUCT ... ENDSTRUCT block. |
|
X:1, RC |
|
End of SWITCH statement. |
|
|
Logical equivalence. |
||
X:2 |
|
Force error within compilation. |
|
X:2 |
|
Special exit label within function / procedure. |
|
X:1 |
Control Statement |
Exit from inner-most loop or block (DO, FOR, SWITCH). |
|
X:2 |
Control Statement |
Exit the current function. |
|
X:2 |
Control Statement |
Exit the current procedure. |
|
X:2 |
Control Statement |
Exit the current function or procedure to label $EXITPROGRAM |
|
++EXTERN |
X:2 |
|
Exposes individual global variables. |
|
Set numeric offset for first file record. |
||
Note 3 |
Ctrl Struct Statement |
|
|
X:2 |
Ctrl Struct Statement |
Used to iterate through Ordered Maps. |
|
.FSTAT |
X:2 |
|
Returns file status for the last ISAM-A operation on the specified channel. |
FUNCTION |
X:2 |
|
Begin definition of function. |
GOSUB |
|
Control Statement |
Same as CALL. |
|
Control Statement |
Jump to specified line number, label or variable. |
|
GRIDMAP |
X:2 |
A variation of ordered map with two keys and one value. |
|
IF |
Note 3 |
Ctrl Struct Statement |
Traditional form of IF statement, and block-structured form of IF … ENDIF. |
|
Ctrl Struct Statement |
|
|
Note 3 |
|
Include specified file at compile time. |
|
|
Input field(s) from keyboard or file. |
||
INDEXED |
|
File OPEN for ISAM or for ISAM-A mode. |
|
INDEXED'EXCLUSIVE |
|
File OPEN for ISAM or for ISAM-A mode. |
|
IO |
|
|
IO(X) pseudo reads from memory-mapped I/O port. |
ISAM'INDEXED |
|
File OPEN for ISAM mode. |
|
ISAM'INDEXED'EXCLUSIVE |
|
File OPEN for ISAM mode. |
|
ISAMP'INDEXED |
|
File OPEN for ISAM-A mode. |
|
ISAMP'INDEXED'EXCLUSIVE |
|
File OPEN for ISAM-A mode. |
|
X:2 |
|
May be appended to an ordered map iterator, i.e. $$iKEY, to reference the key associated with that interator. $$i.KEY is equivalent to .KEY($$i). |
|
|
Delete a file. |
||
LET |
|
|
Assignment statement. |
|
|
|
|
|
|
Return size of file in blocks. |
|
X:1, RC |
|
|
|
|
|
Variable declaration. |
|
MAX |
|
Maximum of two operands. |
|
X:2 |
|
Output message during compilation. Also see ++ERROR. |
|
MIN |
|
Minimum of two operands. |
|
X:2 |
A bidirectional linked list. |
||
MOD |
|
Modulo. |
|
X:1 |
|
Force divide by zero to generate error 10 (default). |
|
NOECHO |
X:1 |
|
Set terminal noecho mode. Same as Xcall NOECHO. |
NOT |
|
Logical NOT. |
|
ON - GOSUB |
|
|
Call one of list of subroutines, based on value. |
ON - GOTO |
|
|
Goto one of list of labels, based on value. |
ON ERROR GOTO |
|
Control Statement |
Specify error handling routine. |
OPEN |
|
Open file. |
|
OPEN for APPEND |
X:1 |
|
Enhancement to OPEN #CH, FSPEC, APPEND. |
OR |
|
Logical OR. |
|
X:2 |
|
An associative array that maps keys to values |
|
X:2 |
|
Same as ORDMAP but supports multiple keys of the same value. |
|
POP |
|
|
Deprecated. Pops the current GOSUB return address from the stack. |
.POPBACK |
X:2 |
Remove last element from an MLIST. |
|
.POPFRONT |
X:2 |
Removes first element from an MLIST. |
|
X:1 |
|
||
|
Output variables and expressions to screen or file. |
||
PROCEDURE |
X:2 |
|
Start definition of a procedure. |
|
|
Program header declaration. |
|
RANDOMIZE |
|
Numeric Function |
Initialize Random Number Generator with a randomly selected seed. |
|
Misc Statement |
Read record from file or from embedded DATA statement. |
|
|
Read record and lock. See file access statements |
||
|
File OPEN mode modifier. |
||
X:2 |
Read record, explicitly without locking. |
||
X:2 |
Array Statement |
Re-dimensions an array originally created with Dynamic Arrays (DIMX). |
|
X:1, RC |
Control Statement |
Jump to top of loop structure to begin next iteration. |
|
RESTORE |
|
General Statement |
Reset DATA access pointer to beginning. |
|
Control Statement |
Resume execution after trapping an error. |
|
RESUME WITH ERROR |
X:2 |
Control Modifier |
Modifier for RESUME within an error trap in a function |
RETURN |
Note 3 |
Control Statement |
Return from unstructured subroutine. Also return value from XFUNC(). |
SCALE |
|
|
Declare scaled arithmetic. |
X:2 |
Sets the record number of a file. |
||
|
General Statement |
Set output/format significance of floating point values. |
|
X:1 |
General Statement |
Sleep for specified seconds. Same as Xcall SLEEP. |
|
.SORT |
X:2 |
Sort elements in MLIST by value. |
|
SPAN |
|
File OPEN mode modifier. |
|
.SPLICE |
X:2 |
Splice elements from one MLIST to another. |
|
|
|
Set loop counter increment. |
|
|
Misc Statement |
Program stop, wait for CR to continue. |
|
|
Compiler Directive |
Sets the default length of string variables. |
|
.SUBLIST |
X:2 |
Specify sublist of element. |
|
X:1, RC |
Ctrl Struct Statement |
Conditional execution based on value of an expression. |
|
|
|
Convert high-level display commands into ESCAPE sequences for terminal. |
|
|
Ctrl Struct Statement |
Separates IF condition from statement. |
|
TIME |
X:2 |
Returns system time in number of seconds since midnight. |
|
|
Ctrl Struct Statement |
|
|
TPRINT |
X:2 |
|
See Expressions. |
X:2 |
|
|
|
|
Compiler Directive |
Cancels (UNDEFines) a symbol created by a prior DEF... directive. |
|
X:2 |
Release lock on file or record. |
||
X:1, RC |
Ctrl Struct Statement |
Repeat loop while (or until) a condition is (or becomes) true. |
|
USING |
|
Formatting by template. |
|
X:2 |
|
Same as XCALL but uses a string expression for the subroutine name. |
|
WEND |
/D |
|
Same as ENDIF. |
WAIT'FILE |
|
File OPEN mode modifier. |
|
WAIT'RECORD |
|
File OPEN mode modifier. |
|
WHEN |
/D |
|
Same as IF. |
X:1, RC |
Ctrl Struct Statement |
Repeat loop while (or until) a condition is (or becomes) true. |
|
X:2 |
Modifier |
Modifier for RESUME within an error trap in a function. |
|
WORD |
|
|
WORD(X) reads memory-mapped ports. |
|
Write to random file. |
||
X:2 |
Output comma delimited values. |
||
X:1 |
Write record not previously locked. |
||
X:1 |
Same as WRITEL but leave record locked. |
||
X:1 |
Same as WRITE but leave record locked. |
||
WRITETD |
X:2 |
|
Deprecated; see WRITECD. |
|
|
Call subroutine. |
|
X:2 |
General Statement |
Retrieve subroutine parameters. |
|
X:2 |
Variation on OPEN statement fo ISAM-A. |
||
XOR |
|
Logical XOR; exclusive OR. |
|
X:2 |
General Statement |
Return subroutine parameters. |
|
X:2 |
Allow record access via explicit record numbers. |